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

Side by Side Diff: third_party/WebKit/Source/modules/presentation/PresentationConnection.cpp

Issue 1857143002: Oilpan: Remove RefCountedGarbageCollectedEventTargetWithInlineData (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/presentation/PresentationConnection.h" 5 #include "modules/presentation/PresentationConnection.h"
6 6
7 #include "bindings/core/v8/ScriptPromiseResolver.h" 7 #include "bindings/core/v8/ScriptPromiseResolver.h"
8 #include "core/dom/DOMArrayBuffer.h" 8 #include "core/dom/DOMArrayBuffer.h"
9 #include "core/dom/DOMArrayBufferView.h" 9 #include "core/dom/DOMArrayBufferView.h"
10 #include "core/dom/Document.h" 10 #include "core/dom/Document.h"
(...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after
227 else if (eventType == EventTypeNames::message) 227 else if (eventType == EventTypeNames::message)
228 UseCounter::count(getExecutionContext(), UseCounter::PresentationConnect ionMessageEventListener); 228 UseCounter::count(getExecutionContext(), UseCounter::PresentationConnect ionMessageEventListener);
229 229
230 return EventTarget::addEventListenerInternal(eventType, listener, options); 230 return EventTarget::addEventListenerInternal(eventType, listener, options);
231 } 231 }
232 232
233 DEFINE_TRACE(PresentationConnection) 233 DEFINE_TRACE(PresentationConnection)
234 { 234 {
235 visitor->trace(m_blobLoader); 235 visitor->trace(m_blobLoader);
236 visitor->trace(m_messages); 236 visitor->trace(m_messages);
237 RefCountedGarbageCollectedEventTargetWithInlineData<PresentationConnection>: :trace(visitor); 237 EventTargetWithInlineData::trace(visitor);
238 DOMWindowProperty::trace(visitor); 238 DOMWindowProperty::trace(visitor);
239 } 239 }
240 240
241 const AtomicString& PresentationConnection::state() const 241 const AtomicString& PresentationConnection::state() const
242 { 242 {
243 return connectionStateToString(m_state); 243 return connectionStateToString(m_state);
244 } 244 }
245 245
246 void PresentationConnection::send(const String& message, ExceptionState& excepti onState) 246 void PresentationConnection::send(const String& message, ExceptionState& excepti onState)
247 { 247 {
(...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 { 457 {
458 // Cancel current Blob loading if any. 458 // Cancel current Blob loading if any.
459 if (m_blobLoader) { 459 if (m_blobLoader) {
460 m_blobLoader->cancel(); 460 m_blobLoader->cancel();
461 m_blobLoader.clear(); 461 m_blobLoader.clear();
462 } 462 }
463 m_messages.clear(); 463 m_messages.clear();
464 } 464 }
465 465
466 } // namespace blink 466 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698