| 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/ContextLifecycleObserver.h" | 9 #include "core/dom/ContextLifecycleObserver.h" |
| 10 #include "core/events/EventTarget.h" | 10 #include "core/events/EventTarget.h" |
| (...skipping 24 matching lines...) Expand all Loading... |
| 35 | 35 |
| 36 // EventTarget overrides. | 36 // EventTarget overrides. |
| 37 const AtomicString& interfaceName() const override; | 37 const AtomicString& interfaceName() const override; |
| 38 ExecutionContext* getExecutionContext() const override; | 38 ExecutionContext* getExecutionContext() const override; |
| 39 void removeAllEventListeners() override; | 39 void removeAllEventListeners() override; |
| 40 | 40 |
| 41 // ScriptWrappable | 41 // ScriptWrappable |
| 42 bool hasPendingActivity() const final; | 42 bool hasPendingActivity() const final; |
| 43 | 43 |
| 44 // ContextLifecycleObserver overrides. | 44 // ContextLifecycleObserver overrides. |
| 45 void contextDestroyed() override; | 45 void contextDestroyed(ExecutionContext*) override; |
| 46 | 46 |
| 47 DECLARE_VIRTUAL_TRACE(); | 47 DECLARE_VIRTUAL_TRACE(); |
| 48 | 48 |
| 49 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); | 49 DEFINE_ATTRIBUTE_EVENT_LISTENER(change); |
| 50 DEFINE_ATTRIBUTE_EVENT_LISTENER(typechange); // Deprecated | 50 DEFINE_ATTRIBUTE_EVENT_LISTENER(typechange); // Deprecated |
| 51 | 51 |
| 52 protected: | 52 protected: |
| 53 // EventTarget overrides. | 53 // EventTarget overrides. |
| 54 void addedEventListener(const AtomicString& eventType, | 54 void addedEventListener(const AtomicString& eventType, |
| 55 RegisteredEventListener&) final; | 55 RegisteredEventListener&) final; |
| (...skipping 14 matching lines...) Expand all Loading... |
| 70 // Whether this object is listening for events from NetworkStateNotifier. | 70 // Whether this object is listening for events from NetworkStateNotifier. |
| 71 bool m_observing; | 71 bool m_observing; |
| 72 | 72 |
| 73 // Whether ContextLifecycleObserver::contextDestroyed has been called. | 73 // Whether ContextLifecycleObserver::contextDestroyed has been called. |
| 74 bool m_contextStopped; | 74 bool m_contextStopped; |
| 75 }; | 75 }; |
| 76 | 76 |
| 77 } // namespace blink | 77 } // namespace blink |
| 78 | 78 |
| 79 #endif // NetworkInformation_h | 79 #endif // NetworkInformation_h |
| OLD | NEW |