| OLD | NEW |
| 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 Loading... |
| 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 |
| OLD | NEW |