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

Side by Side Diff: third_party/WebKit/Source/modules/netinfo/NetworkInformation.cpp

Issue 2710023006: Move NetworkStateNotifier from core (and web) into platform/network (Closed)
Patch Set: rebase Created 3 years, 9 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "modules/netinfo/NetworkInformation.h" 5 #include "modules/netinfo/NetworkInformation.h"
6 6
7 #include "core/dom/ExecutionContext.h" 7 #include "core/dom/ExecutionContext.h"
8 #include "core/dom/TaskRunnerHelper.h" 8 #include "core/dom/TaskRunnerHelper.h"
9 #include "core/events/Event.h" 9 #include "core/events/Event.h"
10 #include "core/page/NetworkStateNotifier.h"
11 #include "modules/EventTargetModules.h" 10 #include "modules/EventTargetModules.h"
12 #include "platform/RuntimeEnabledFeatures.h" 11 #include "platform/RuntimeEnabledFeatures.h"
13 #include "wtf/text/WTFString.h" 12 #include "wtf/text/WTFString.h"
14 13
15 namespace blink { 14 namespace blink {
16 15
17 namespace { 16 namespace {
18 17
19 String connectionTypeToString(WebConnectionType type) { 18 String connectionTypeToString(WebConnectionType type) {
20 switch (type) { 19 switch (type) {
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 m_downlinkMaxMbps(networkStateNotifier().maxBandwidth()), 151 m_downlinkMaxMbps(networkStateNotifier().maxBandwidth()),
153 m_observing(false), 152 m_observing(false),
154 m_contextStopped(false) {} 153 m_contextStopped(false) {}
155 154
156 DEFINE_TRACE(NetworkInformation) { 155 DEFINE_TRACE(NetworkInformation) {
157 EventTargetWithInlineData::trace(visitor); 156 EventTargetWithInlineData::trace(visitor);
158 ContextLifecycleObserver::trace(visitor); 157 ContextLifecycleObserver::trace(visitor);
159 } 158 }
160 159
161 } // namespace blink 160 } // namespace blink
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/netinfo/NetworkInformation.h ('k') | third_party/WebKit/Source/platform/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698