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

Side by Side Diff: jingle/glue/fake_network_manager.cc

Issue 19607005: Use a direct include of the message_loop header in dbus/, device/, extensions/, google_apis/, gpu/,… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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
« no previous file with comments | « jingle/glue/chrome_async_socket_unittest.cc ('k') | jingle/glue/fake_socket_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "jingle/glue/fake_network_manager.h" 5 #include "jingle/glue/fake_network_manager.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "jingle/glue/utils.h"
10 #include "net/base/ip_endpoint.h" 11 #include "net/base/ip_endpoint.h"
11 #include "jingle/glue/utils.h"
12 #include "third_party/libjingle/source/talk/base/socketaddress.h" 12 #include "third_party/libjingle/source/talk/base/socketaddress.h"
13 13
14 namespace jingle_glue { 14 namespace jingle_glue {
15 15
16 FakeNetworkManager::FakeNetworkManager(const net::IPAddressNumber& address) 16 FakeNetworkManager::FakeNetworkManager(const net::IPAddressNumber& address)
17 : started_(false), 17 : started_(false),
18 weak_factory_(this) { 18 weak_factory_(this) {
19 net::IPEndPoint endpoint(address, 0); 19 net::IPEndPoint endpoint(address, 0);
20 talk_base::SocketAddress socket_address; 20 talk_base::SocketAddress socket_address;
21 CHECK(IPEndPointToSocketAddress(endpoint, &socket_address)); 21 CHECK(IPEndPointToSocketAddress(endpoint, &socket_address));
(...skipping 20 matching lines...) Expand all
42 void FakeNetworkManager::GetNetworks(NetworkList* networks) const { 42 void FakeNetworkManager::GetNetworks(NetworkList* networks) const {
43 networks->clear(); 43 networks->clear();
44 networks->push_back(network_.get()); 44 networks->push_back(network_.get());
45 } 45 }
46 46
47 void FakeNetworkManager::SendNetworksChangedSignal() { 47 void FakeNetworkManager::SendNetworksChangedSignal() {
48 SignalNetworksChanged(); 48 SignalNetworksChanged();
49 } 49 }
50 50
51 } // namespace jingle_glue 51 } // namespace jingle_glue
OLDNEW
« no previous file with comments | « jingle/glue/chrome_async_socket_unittest.cc ('k') | jingle/glue/fake_socket_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698