OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 5 #ifndef CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
6 #define CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 6 #define CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
7 | 7 |
8 #include "third_party/libjingle/source/talk/p2p/client/basicportallocator.h" | 8 #include "third_party/libjingle/source/talk/p2p/client/basicportallocator.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 30 matching lines...) Expand all Loading... |
41 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, | 41 P2PPortAllocator(P2PSocketDispatcher* socket_dispatcher, |
42 rtc::NetworkManager* network_manager, | 42 rtc::NetworkManager* network_manager, |
43 rtc::PacketSocketFactory* socket_factory, | 43 rtc::PacketSocketFactory* socket_factory, |
44 const Config& config); | 44 const Config& config); |
45 virtual ~P2PPortAllocator(); | 45 virtual ~P2PPortAllocator(); |
46 | 46 |
47 virtual cricket::PortAllocatorSession* CreateSessionInternal( | 47 virtual cricket::PortAllocatorSession* CreateSessionInternal( |
48 const std::string& content_name, | 48 const std::string& content_name, |
49 int component, | 49 int component, |
50 const std::string& ice_username_fragment, | 50 const std::string& ice_username_fragment, |
51 const std::string& ice_password) OVERRIDE; | 51 const std::string& ice_password) override; |
52 | 52 |
53 private: | 53 private: |
54 friend class P2PPortAllocatorSession; | 54 friend class P2PPortAllocatorSession; |
55 | 55 |
56 P2PSocketDispatcher* socket_dispatcher_; | 56 P2PSocketDispatcher* socket_dispatcher_; |
57 Config config_; | 57 Config config_; |
58 | 58 |
59 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocator); | 59 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocator); |
60 }; | 60 }; |
61 | 61 |
62 class P2PPortAllocatorSession : public cricket::BasicPortAllocatorSession { | 62 class P2PPortAllocatorSession : public cricket::BasicPortAllocatorSession { |
63 public: | 63 public: |
64 P2PPortAllocatorSession( | 64 P2PPortAllocatorSession( |
65 P2PPortAllocator* allocator, | 65 P2PPortAllocator* allocator, |
66 const std::string& content_name, | 66 const std::string& content_name, |
67 int component, | 67 int component, |
68 const std::string& ice_username_fragment, | 68 const std::string& ice_username_fragment, |
69 const std::string& ice_password); | 69 const std::string& ice_password); |
70 virtual ~P2PPortAllocatorSession(); | 70 virtual ~P2PPortAllocatorSession(); |
71 | 71 |
72 protected: | 72 protected: |
73 // Overrides for cricket::BasicPortAllocatorSession. | 73 // Overrides for cricket::BasicPortAllocatorSession. |
74 virtual void GetPortConfigurations() OVERRIDE; | 74 virtual void GetPortConfigurations() override; |
75 | 75 |
76 private: | 76 private: |
77 P2PPortAllocator* allocator_; | 77 P2PPortAllocator* allocator_; |
78 | 78 |
79 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); | 79 DISALLOW_COPY_AND_ASSIGN(P2PPortAllocatorSession); |
80 }; | 80 }; |
81 | 81 |
82 } // namespace content | 82 } // namespace content |
83 | 83 |
84 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ | 84 #endif // CONTENT_RENDERER_P2P_PORT_ALLOCATOR_H_ |
OLD | NEW |