| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 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 | 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 #include "content/renderer/p2p/ipc_network_manager.h" | 5 #include "content/renderer/p2p/ipc_network_manager.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/sys_byteorder.h" |
| 8 #include "net/base/net_util.h" | 9 #include "net/base/net_util.h" |
| 9 #include "net/base/sys_byteorder.h" | |
| 10 | 10 |
| 11 namespace content { | 11 namespace content { |
| 12 | 12 |
| 13 IpcNetworkManager::IpcNetworkManager(P2PSocketDispatcher* socket_dispatcher) | 13 IpcNetworkManager::IpcNetworkManager(P2PSocketDispatcher* socket_dispatcher) |
| 14 : socket_dispatcher_(socket_dispatcher), | 14 : socket_dispatcher_(socket_dispatcher), |
| 15 started_(false), | 15 started_(false), |
| 16 first_update_sent_(false), | 16 first_update_sent_(false), |
| 17 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { | 17 ALLOW_THIS_IN_INITIALIZER_LIST(weak_factory_(this)) { |
| 18 } | 18 } |
| 19 | 19 |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 | 59 |
| 60 MergeNetworkList(networks, !first_update_sent_); | 60 MergeNetworkList(networks, !first_update_sent_); |
| 61 first_update_sent_ = false; | 61 first_update_sent_ = false; |
| 62 } | 62 } |
| 63 | 63 |
| 64 void IpcNetworkManager::SendNetworksChangedSignal() { | 64 void IpcNetworkManager::SendNetworksChangedSignal() { |
| 65 SignalNetworksChanged(); | 65 SignalNetworksChanged(); |
| 66 } | 66 } |
| 67 | 67 |
| 68 } // namespace content | 68 } // namespace content |
| OLD | NEW |