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

Side by Side Diff: webrtc/base/networkmonitor.cc

Issue 2019423006: Adding more detail to MessageQueue::Dispatch logging. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Fixing one more place where RTC_FROM_HERE wasn't used. Created 4 years, 6 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
« no previous file with comments | « webrtc/base/network.cc ('k') | webrtc/base/nullsocketserver_unittest.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 /* 1 /*
2 * Copyright 2015 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2015 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 13 matching lines...) Expand all
24 namespace rtc { 24 namespace rtc {
25 NetworkMonitorInterface::NetworkMonitorInterface() {} 25 NetworkMonitorInterface::NetworkMonitorInterface() {}
26 26
27 NetworkMonitorInterface::~NetworkMonitorInterface() {} 27 NetworkMonitorInterface::~NetworkMonitorInterface() {}
28 28
29 NetworkMonitorBase::NetworkMonitorBase() : worker_thread_(Thread::Current()) {} 29 NetworkMonitorBase::NetworkMonitorBase() : worker_thread_(Thread::Current()) {}
30 NetworkMonitorBase::~NetworkMonitorBase() {} 30 NetworkMonitorBase::~NetworkMonitorBase() {}
31 31
32 void NetworkMonitorBase::OnNetworksChanged() { 32 void NetworkMonitorBase::OnNetworksChanged() {
33 LOG(LS_VERBOSE) << "Network change is received at the network monitor"; 33 LOG(LS_VERBOSE) << "Network change is received at the network monitor";
34 worker_thread_->Post(this, UPDATE_NETWORKS_MESSAGE); 34 worker_thread_->Post(RTC_FROM_HERE, this, UPDATE_NETWORKS_MESSAGE);
35 } 35 }
36 36
37 void NetworkMonitorBase::OnMessage(Message* msg) { 37 void NetworkMonitorBase::OnMessage(Message* msg) {
38 ASSERT(msg->message_id == UPDATE_NETWORKS_MESSAGE); 38 ASSERT(msg->message_id == UPDATE_NETWORKS_MESSAGE);
39 SignalNetworksChanged(); 39 SignalNetworksChanged();
40 } 40 }
41 41
42 NetworkMonitorFactory::NetworkMonitorFactory() {} 42 NetworkMonitorFactory::NetworkMonitorFactory() {}
43 NetworkMonitorFactory::~NetworkMonitorFactory() {} 43 NetworkMonitorFactory::~NetworkMonitorFactory() {}
44 44
45 void NetworkMonitorFactory::SetFactory(NetworkMonitorFactory* factory) { 45 void NetworkMonitorFactory::SetFactory(NetworkMonitorFactory* factory) {
46 if (network_monitor_factory != nullptr) { 46 if (network_monitor_factory != nullptr) {
47 delete network_monitor_factory; 47 delete network_monitor_factory;
48 } 48 }
49 network_monitor_factory = factory; 49 network_monitor_factory = factory;
50 } 50 }
51 51
52 void NetworkMonitorFactory::ReleaseFactory(NetworkMonitorFactory* factory) { 52 void NetworkMonitorFactory::ReleaseFactory(NetworkMonitorFactory* factory) {
53 if (factory == network_monitor_factory) { 53 if (factory == network_monitor_factory) {
54 SetFactory(nullptr); 54 SetFactory(nullptr);
55 } 55 }
56 } 56 }
57 57
58 NetworkMonitorFactory* NetworkMonitorFactory::GetFactory() { 58 NetworkMonitorFactory* NetworkMonitorFactory::GetFactory() {
59 return network_monitor_factory; 59 return network_monitor_factory;
60 } 60 }
61 61
62 } // namespace rtc 62 } // namespace rtc
OLDNEW
« no previous file with comments | « webrtc/base/network.cc ('k') | webrtc/base/nullsocketserver_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698