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 "config.h" | 5 #include "config.h" |
6 #include "modules/netinfo/NetworkInformation.h" | 6 #include "modules/netinfo/NetworkInformation.h" |
7 | 7 |
8 #include "core/dom/ExecutionContext.h" | 8 #include "core/dom/ExecutionContext.h" |
9 #include "core/events/Event.h" | 9 #include "core/events/Event.h" |
10 #include "core/page/NetworkStateNotifier.h" | 10 #include "core/page/NetworkStateNotifier.h" |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 m_observing = false; | 139 m_observing = false; |
140 } | 140 } |
141 } | 141 } |
142 | 142 |
143 NetworkInformation::NetworkInformation(ExecutionContext* context) | 143 NetworkInformation::NetworkInformation(ExecutionContext* context) |
144 : ActiveDOMObject(context) | 144 : ActiveDOMObject(context) |
145 , m_type(networkStateNotifier().connectionType()) | 145 , m_type(networkStateNotifier().connectionType()) |
146 , m_observing(false) | 146 , m_observing(false) |
147 , m_contextStopped(false) | 147 , m_contextStopped(false) |
148 { | 148 { |
149 ScriptWrappable::init(this); | |
150 } | 149 } |
151 | 150 |
152 } // namespace blink | 151 } // namespace blink |
OLD | NEW |