| 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 "modules/EventTargetModules.h" | 10 #include "modules/EventTargetModules.h" |
| 11 #include "platform/RuntimeEnabledFeatures.h" | 11 #include "platform/RuntimeEnabledFeatures.h" |
| 12 #include "wtf/text/WTFString.h" | 12 #include "platform/wtf/text/WTFString.h" |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 String ConnectionTypeToString(WebConnectionType type) { | 18 String ConnectionTypeToString(WebConnectionType type) { |
| 19 switch (type) { | 19 switch (type) { |
| 20 case kWebConnectionTypeCellular2G: | 20 case kWebConnectionTypeCellular2G: |
| 21 case kWebConnectionTypeCellular3G: | 21 case kWebConnectionTypeCellular3G: |
| 22 case kWebConnectionTypeCellular4G: | 22 case kWebConnectionTypeCellular4G: |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 downlink_max_mbps_(GetNetworkStateNotifier().MaxBandwidth()), | 152 downlink_max_mbps_(GetNetworkStateNotifier().MaxBandwidth()), |
| 153 observing_(false), | 153 observing_(false), |
| 154 context_stopped_(false) {} | 154 context_stopped_(false) {} |
| 155 | 155 |
| 156 DEFINE_TRACE(NetworkInformation) { | 156 DEFINE_TRACE(NetworkInformation) { |
| 157 EventTargetWithInlineData::Trace(visitor); | 157 EventTargetWithInlineData::Trace(visitor); |
| 158 ContextLifecycleObserver::Trace(visitor); | 158 ContextLifecycleObserver::Trace(visitor); |
| 159 } | 159 } |
| 160 | 160 |
| 161 } // namespace blink | 161 } // namespace blink |
| OLD | NEW |