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 #ifndef NetworkInformation_h | 5 #ifndef NetworkInformation_h |
6 #define NetworkInformation_h | 6 #define NetworkInformation_h |
7 | 7 |
8 #include "bindings/core/v8/ActiveScriptWrappable.h" | 8 #include "bindings/core/v8/ActiveScriptWrappable.h" |
9 #include "core/dom/ActiveDOMObject.h" | 9 #include "core/dom/ActiveDOMObject.h" |
10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
(...skipping 19 matching lines...) Expand all Loading... |
30 double downlinkMax() const; | 30 double downlinkMax() const; |
31 | 31 |
32 // NetworkStateObserver overrides. | 32 // NetworkStateObserver overrides. |
33 void connectionChange(WebConnectionType, double downlinkMaxMbps) override; | 33 void connectionChange(WebConnectionType, double downlinkMaxMbps) override; |
34 | 34 |
35 // EventTarget overrides. | 35 // EventTarget overrides. |
36 const AtomicString& interfaceName() const override; | 36 const AtomicString& interfaceName() const override; |
37 ExecutionContext* getExecutionContext() const override; | 37 ExecutionContext* getExecutionContext() const override; |
38 void removeAllEventListeners() override; | 38 void removeAllEventListeners() override; |
39 | 39 |
40 // ActiveScriptWrappable | 40 // ScriptWrappable |
41 bool hasPendingActivity() const final; | 41 bool hasPendingActivity() const final; |
42 | 42 |
43 // ActiveDOMObject overrides. | 43 // ActiveDOMObject overrides. |
44 void stop() override; | 44 void stop() override; |
45 | 45 |
46 DECLARE_VIRTUAL_TRACE(); | 46 DECLARE_VIRTUAL_TRACE(); |
47 | 47 |
48 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); | 48 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); |
49 DEFINE_ATTRIBUTE_EVENT_LISTENER(typechange); // Deprecated | 49 DEFINE_ATTRIBUTE_EVENT_LISTENER(typechange); // Deprecated |
50 | 50 |
(...skipping 16 matching lines...) Expand all Loading... |
67 // Whether this object is listening for events from NetworkStateNotifier. | 67 // Whether this object is listening for events from NetworkStateNotifier. |
68 bool m_observing; | 68 bool m_observing; |
69 | 69 |
70 // Whether ActiveDOMObject::stop has been called. | 70 // Whether ActiveDOMObject::stop has been called. |
71 bool m_contextStopped; | 71 bool m_contextStopped; |
72 }; | 72 }; |
73 | 73 |
74 } // namespace blink | 74 } // namespace blink |
75 | 75 |
76 #endif // NetworkInformation_h | 76 #endif // NetworkInformation_h |
OLD | NEW |