Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: third_party/WebKit/Source/modules/netinfo/NetworkInformation.h

Issue 2577053002: ActiveScriptWrappable: GC wrappers in detached ExecutionContexts. (Closed)
Patch Set: component build fix(msvc) Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/SuspendableObject.h" 9 #include "core/dom/SuspendableObject.h"
10 #include "core/events/EventTarget.h" 10 #include "core/events/EventTarget.h"
11 #include "core/page/NetworkStateNotifier.h" 11 #include "core/page/NetworkStateNotifier.h"
12 #include "public/platform/WebConnectionType.h" 12 #include "public/platform/WebConnectionType.h"
13 13
14 namespace blink { 14 namespace blink {
15 15
16 class ExecutionContext; 16 class ExecutionContext;
17 17
18 class NetworkInformation final 18 class NetworkInformation final
19 : public EventTargetWithInlineData, 19 : public EventTargetWithInlineData,
20 public ActiveScriptWrappable, 20 public ActiveScriptWrappable<NetworkInformation>,
21 public SuspendableObject, 21 public SuspendableObject,
22 public NetworkStateNotifier::NetworkStateObserver { 22 public NetworkStateNotifier::NetworkStateObserver {
23 USING_GARBAGE_COLLECTED_MIXIN(NetworkInformation); 23 USING_GARBAGE_COLLECTED_MIXIN(NetworkInformation);
24 DEFINE_WRAPPERTYPEINFO(); 24 DEFINE_WRAPPERTYPEINFO();
25 25
26 public: 26 public:
27 static NetworkInformation* create(ExecutionContext*); 27 static NetworkInformation* create(ExecutionContext*);
28 ~NetworkInformation() override; 28 ~NetworkInformation() override;
29 29
30 String type() const; 30 String type() const;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 SuspendableObject::stop has been called. 73 // Whether SuspendableObject::stop 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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698