Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(638)

Side by Side Diff: content/renderer/p2p/ipc_network_manager.h

Issue 429113002: Webrtc deps roll. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Use webrtc version 6825 and rebase and switch back to original workspace. Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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_IPC_NETWORK_MANAGER_H_ 5 #ifndef CONTENT_RENDERER_P2P_IPC_NETWORK_MANAGER_H_
6 #define CONTENT_RENDERER_P2P_IPC_NETWORK_MANAGER_H_ 6 #define CONTENT_RENDERER_P2P_IPC_NETWORK_MANAGER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
11 #include "base/memory/weak_ptr.h" 11 #include "base/memory/weak_ptr.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "content/renderer/p2p/network_list_observer.h" 13 #include "content/renderer/p2p/network_list_observer.h"
14 #include "content/renderer/p2p/socket_dispatcher.h" 14 #include "content/renderer/p2p/socket_dispatcher.h"
15 #include "third_party/libjingle/source/talk/base/network.h" 15 #include "third_party/webrtc/base/network.h"
16 16
17 namespace content { 17 namespace content {
18 18
19 // IpcNetworkManager is a NetworkManager for libjingle that gets a 19 // IpcNetworkManager is a NetworkManager for libjingle that gets a
20 // list of network interfaces from the browser. 20 // list of network interfaces from the browser.
21 class IpcNetworkManager : public talk_base::NetworkManagerBase, 21 class IpcNetworkManager : public rtc::NetworkManagerBase,
22 public NetworkListObserver { 22 public NetworkListObserver {
23 public: 23 public:
24 // Constructor doesn't take ownership of the |socket_dispatcher|. 24 // Constructor doesn't take ownership of the |socket_dispatcher|.
25 CONTENT_EXPORT IpcNetworkManager(P2PSocketDispatcher* socket_dispatcher); 25 CONTENT_EXPORT IpcNetworkManager(P2PSocketDispatcher* socket_dispatcher);
26 virtual ~IpcNetworkManager(); 26 virtual ~IpcNetworkManager();
27 27
28 virtual void StartUpdating() OVERRIDE; 28 virtual void StartUpdating() OVERRIDE;
29 virtual void StopUpdating() OVERRIDE; 29 virtual void StopUpdating() OVERRIDE;
30 30
31 // P2PSocketDispatcher::NetworkListObserver interface. 31 // P2PSocketDispatcher::NetworkListObserver interface.
32 virtual void OnNetworkListChanged( 32 virtual void OnNetworkListChanged(
33 const net::NetworkInterfaceList& list) OVERRIDE; 33 const net::NetworkInterfaceList& list) OVERRIDE;
34 34
35 private: 35 private:
36 void SendNetworksChangedSignal(); 36 void SendNetworksChangedSignal();
37 37
38 P2PSocketDispatcher* socket_dispatcher_; 38 P2PSocketDispatcher* socket_dispatcher_;
39 int start_count_; 39 int start_count_;
40 bool network_list_received_; 40 bool network_list_received_;
41 41
42 base::WeakPtrFactory<IpcNetworkManager> weak_factory_; 42 base::WeakPtrFactory<IpcNetworkManager> weak_factory_;
43 }; 43 };
44 44
45 } // namespace content 45 } // namespace content
46 46
47 #endif // CONTENT_RENDERER_P2P_IPC_NETWORK_MANAGER_H_ 47 #endif // CONTENT_RENDERER_P2P_IPC_NETWORK_MANAGER_H_
OLDNEW
« no previous file with comments | « content/renderer/p2p/host_address_request.cc ('k') | content/renderer/p2p/ipc_network_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698