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

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

Issue 478243002: bindings: Adds virtual ScriptWrappable::wrap method. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced. Created 6 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/mediastream/SourceInfo.h ('k') | Source/modules/notifications/Notification.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "core/dom/ActiveDOMObject.h" 8 #include "core/dom/ActiveDOMObject.h"
9 #include "core/events/EventTarget.h" 9 #include "core/events/EventTarget.h"
10 #include "core/page/NetworkStateNotifier.h" 10 #include "core/page/NetworkStateNotifier.h"
11 #include "public/platform/WebConnectionType.h" 11 #include "public/platform/WebConnectionType.h"
12 12
13 namespace blink { 13 namespace blink {
14 14
15 class ExecutionContext; 15 class ExecutionContext;
16 16
17 class NetworkInformation FINAL 17 class NetworkInformation FINAL
18 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<NetworkIn formation> 18 : public RefCountedGarbageCollectedWillBeGarbageCollectedFinalized<NetworkIn formation>
19 , public ActiveDOMObject 19 , public ActiveDOMObject
20 , public EventTargetWithInlineData 20 , public EventTargetWithInlineData
21 , public NetworkStateNotifier::NetworkStateObserver { 21 , public NetworkStateNotifier::NetworkStateObserver {
22 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<N etworkInformation>); 22 DEFINE_EVENT_TARGET_REFCOUNTING_WILL_BE_REMOVED(RefCountedGarbageCollected<N etworkInformation>);
23 DEFINE_WRAPPERTYPEINFO();
23 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NetworkInformation); 24 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(NetworkInformation);
24
25 public: 25 public:
26 static NetworkInformation* create(ExecutionContext*); 26 static NetworkInformation* create(ExecutionContext*);
27 virtual ~NetworkInformation(); 27 virtual ~NetworkInformation();
28 28
29 String type() const; 29 String type() const;
30 30
31 virtual void connectionTypeChange(WebConnectionType) OVERRIDE; 31 virtual void connectionTypeChange(WebConnectionType) OVERRIDE;
32 32
33 // EventTarget overrides. 33 // EventTarget overrides.
34 virtual const AtomicString& interfaceName() const OVERRIDE; 34 virtual const AtomicString& interfaceName() const OVERRIDE;
(...skipping 19 matching lines...) Expand all
54 // Whether this object is listening for events from NetworkStateNotifier. 54 // Whether this object is listening for events from NetworkStateNotifier.
55 bool m_observing; 55 bool m_observing;
56 56
57 // Whether ActiveDOMObject::stop has been called. 57 // Whether ActiveDOMObject::stop has been called.
58 bool m_contextStopped; 58 bool m_contextStopped;
59 }; 59 };
60 60
61 } // namespace blink 61 } // namespace blink
62 62
63 #endif // NetworkInformation_h 63 #endif // NetworkInformation_h
OLDNEW
« no previous file with comments | « Source/modules/mediastream/SourceInfo.h ('k') | Source/modules/notifications/Notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698