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

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

Issue 1686483002: Oilpan: Remove most WillBe types from the code base (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
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 #include "modules/netinfo/NetworkInformation.h" 5 #include "modules/netinfo/NetworkInformation.h"
6 6
7 #include "core/dom/ExecutionContext.h" 7 #include "core/dom/ExecutionContext.h"
8 #include "core/events/Event.h" 8 #include "core/events/Event.h"
9 #include "core/page/NetworkStateNotifier.h" 9 #include "core/page/NetworkStateNotifier.h"
10 #include "modules/EventTargetModules.h" 10 #include "modules/EventTargetModules.h"
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 const AtomicString& NetworkInformation::interfaceName() const 96 const AtomicString& NetworkInformation::interfaceName() const
97 { 97 {
98 return EventTargetNames::NetworkInformation; 98 return EventTargetNames::NetworkInformation;
99 } 99 }
100 100
101 ExecutionContext* NetworkInformation::executionContext() const 101 ExecutionContext* NetworkInformation::executionContext() const
102 { 102 {
103 return ActiveDOMObject::executionContext(); 103 return ActiveDOMObject::executionContext();
104 } 104 }
105 105
106 bool NetworkInformation::addEventListenerInternal(const AtomicString& eventType, PassRefPtrWillBeRawPtr<EventListener> listener, const EventListenerOptions& opt ions) 106 bool NetworkInformation::addEventListenerInternal(const AtomicString& eventType, RawPtr<EventListener> listener, const EventListenerOptions& options)
107 { 107 {
108 if (!EventTargetWithInlineData::addEventListenerInternal(eventType, listener , options)) 108 if (!EventTargetWithInlineData::addEventListenerInternal(eventType, listener , options))
109 return false; 109 return false;
110 startObserving(); 110 startObserving();
111 return true; 111 return true;
112 } 112 }
113 113
114 bool NetworkInformation::removeEventListenerInternal(const AtomicString& eventTy pe, PassRefPtrWillBeRawPtr<EventListener> listener, const EventListenerOptions& options) 114 bool NetworkInformation::removeEventListenerInternal(const AtomicString& eventTy pe, RawPtr<EventListener> listener, const EventListenerOptions& options)
115 { 115 {
116 if (!EventTargetWithInlineData::removeEventListenerInternal(eventType, liste ner, options)) 116 if (!EventTargetWithInlineData::removeEventListenerInternal(eventType, liste ner, options))
117 return false; 117 return false;
118 if (!hasEventListeners()) 118 if (!hasEventListeners())
119 stopObserving(); 119 stopObserving();
120 return true; 120 return true;
121 } 121 }
122 122
123 void NetworkInformation::removeAllEventListeners() 123 void NetworkInformation::removeAllEventListeners()
124 { 124 {
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 { 167 {
168 } 168 }
169 169
170 DEFINE_TRACE(NetworkInformation) 170 DEFINE_TRACE(NetworkInformation)
171 { 171 {
172 RefCountedGarbageCollectedEventTargetWithInlineData<NetworkInformation>::tra ce(visitor); 172 RefCountedGarbageCollectedEventTargetWithInlineData<NetworkInformation>::tra ce(visitor);
173 ActiveDOMObject::trace(visitor); 173 ActiveDOMObject::trace(visitor);
174 } 174 }
175 175
176 } // namespace blink 176 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698