diff options
Diffstat (limited to 'chromium/third_party/libjingle/source/talk/p2p/client/basicportallocator.h')
-rw-r--r-- | chromium/third_party/libjingle/source/talk/p2p/client/basicportallocator.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/chromium/third_party/libjingle/source/talk/p2p/client/basicportallocator.h b/chromium/third_party/libjingle/source/talk/p2p/client/basicportallocator.h index 1fc6ebe10fb..8a60c425ca6 100644 --- a/chromium/third_party/libjingle/source/talk/p2p/client/basicportallocator.h +++ b/chromium/third_party/libjingle/source/talk/p2p/client/basicportallocator.h @@ -204,7 +204,6 @@ class BasicPortAllocatorSession : public PortAllocatorSession, talk_base::Thread* network_thread_; talk_base::scoped_ptr<talk_base::PacketSocketFactory> owned_socket_factory_; talk_base::PacketSocketFactory* socket_factory_; - bool configuration_done_; bool allocation_started_; bool network_manager_started_; bool running_; // set when StartGetAllPorts is called @@ -233,8 +232,13 @@ struct PortConfiguration : public talk_base::MessageData { void AddRelay(const RelayServerConfig& config); // Determines whether the given relay server supports the given protocol. - static bool SupportsProtocol(const RelayServerConfig& relay, - ProtocolType type); + bool SupportsProtocol(const RelayServerConfig& relay, + ProtocolType type) const; + bool SupportsProtocol(RelayType turn_type, ProtocolType type) const; + // Helper method returns the first server address for the matching + // RelayType and Protocol type. + talk_base::SocketAddress GetFirstRelayServerAddress( + RelayType turn_type, ProtocolType type) const; }; } // namespace cricket |