| 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 #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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |