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 <memory> |
7 #include "bindings/core/v8/ScriptPromiseResolver.h" | 8 #include "bindings/core/v8/ScriptPromiseResolver.h" |
8 #include "core/dom/DOMArrayBuffer.h" | 9 #include "core/dom/DOMArrayBuffer.h" |
9 #include "core/dom/DOMArrayBufferView.h" | 10 #include "core/dom/DOMArrayBufferView.h" |
10 #include "core/dom/Document.h" | 11 #include "core/dom/Document.h" |
11 #include "core/dom/ExceptionCode.h" | 12 #include "core/dom/ExceptionCode.h" |
12 #include "core/dom/TaskRunnerHelper.h" | 13 #include "core/dom/TaskRunnerHelper.h" |
13 #include "core/events/Event.h" | 14 #include "core/events/Event.h" |
14 #include "core/events/MessageEvent.h" | 15 #include "core/events/MessageEvent.h" |
15 #include "core/fileapi/FileReaderLoader.h" | 16 #include "core/fileapi/FileReaderLoader.h" |
16 #include "core/fileapi/FileReaderLoaderClient.h" | 17 #include "core/fileapi/FileReaderLoaderClient.h" |
17 #include "core/frame/Deprecation.h" | 18 #include "core/frame/Deprecation.h" |
18 #include "core/frame/LocalFrame.h" | 19 #include "core/frame/LocalFrame.h" |
19 #include "core/frame/UseCounter.h" | 20 #include "core/frame/UseCounter.h" |
20 #include "modules/EventTargetModules.h" | 21 #include "modules/EventTargetModules.h" |
21 #include "modules/presentation/Presentation.h" | 22 #include "modules/presentation/Presentation.h" |
22 #include "modules/presentation/PresentationConnectionAvailableEvent.h" | 23 #include "modules/presentation/PresentationConnectionAvailableEvent.h" |
23 #include "modules/presentation/PresentationConnectionCloseEvent.h" | 24 #include "modules/presentation/PresentationConnectionCloseEvent.h" |
24 #include "modules/presentation/PresentationController.h" | 25 #include "modules/presentation/PresentationController.h" |
25 #include "modules/presentation/PresentationReceiver.h" | 26 #include "modules/presentation/PresentationReceiver.h" |
26 #include "modules/presentation/PresentationRequest.h" | 27 #include "modules/presentation/PresentationRequest.h" |
27 #include "wtf/Assertions.h" | 28 #include "wtf/Assertions.h" |
28 #include "wtf/text/AtomicString.h" | 29 #include "wtf/text/AtomicString.h" |
29 #include <memory> | |
30 | 30 |
31 namespace blink { | 31 namespace blink { |
32 | 32 |
33 namespace { | 33 namespace { |
34 | 34 |
35 // TODO(mlamouri): refactor in one common place. | 35 // TODO(mlamouri): refactor in one common place. |
36 WebPresentationClient* presentationClient(ExecutionContext* executionContext) { | 36 WebPresentationClient* presentationClient(ExecutionContext* executionContext) { |
37 ASSERT(executionContext && executionContext->isDocument()); | 37 ASSERT(executionContext && executionContext->isDocument()); |
38 | 38 |
39 Document* document = toDocument(executionContext); | 39 Document* document = toDocument(executionContext); |
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
504 void PresentationConnection::tearDown() { | 504 void PresentationConnection::tearDown() { |
505 // Cancel current Blob loading if any. | 505 // Cancel current Blob loading if any. |
506 if (m_blobLoader) { | 506 if (m_blobLoader) { |
507 m_blobLoader->cancel(); | 507 m_blobLoader->cancel(); |
508 m_blobLoader.clear(); | 508 m_blobLoader.clear(); |
509 } | 509 } |
510 m_messages.clear(); | 510 m_messages.clear(); |
511 } | 511 } |
512 | 512 |
513 } // namespace blink | 513 } // namespace blink |
OLD | NEW |