OLD | NEW |
| (Empty) |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #include "chrome/renderer/p2p/ipc_network_manager.h" | |
6 | |
7 IpcNetworkManager::IpcNetworkManager(P2PSocketDispatcher* socket_dispatcher) | |
8 : socket_dispatcher_(socket_dispatcher) { | |
9 } | |
10 | |
11 IpcNetworkManager::~IpcNetworkManager() { | |
12 } | |
13 | |
14 // TODO(sergeyu): Currently this method just adds one fake network in | |
15 // the list. This doesn't prevent PortAllocator from allocating ports: | |
16 // browser process chooses first IPv4-enabled interface. But this | |
17 // approach will not work in case when there is more than one active | |
18 // network interface. Implement this properly: get list of networks | |
19 // from the browser. | |
20 bool IpcNetworkManager::EnumNetworks( | |
21 bool include_ignored, std::vector<talk_base::Network*>* networks) { | |
22 networks->push_back(new talk_base::Network( | |
23 "chrome", "Chrome virtual network", 0, 0)); | |
24 return true; | |
25 } | |
OLD | NEW |