| 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 "config.h" | 5 #include "config.h" |
| 6 #include "modules/presentation/PresentationSession.h" | 6 #include "modules/presentation/PresentationSession.h" |
| 7 | 7 |
| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 | 83 |
| 84 private: | 84 private: |
| 85 Member<PresentationSession> m_presentationSession; | 85 Member<PresentationSession> m_presentationSession; |
| 86 FileReaderLoader m_loader; | 86 FileReaderLoader m_loader; |
| 87 }; | 87 }; |
| 88 | 88 |
| 89 PresentationSession::PresentationSession(LocalFrame* frame, const String& id, co
nst String& url) | 89 PresentationSession::PresentationSession(LocalFrame* frame, const String& id, co
nst String& url) |
| 90 : DOMWindowProperty(frame) | 90 : DOMWindowProperty(frame) |
| 91 , m_id(id) | 91 , m_id(id) |
| 92 , m_url(url) | 92 , m_url(url) |
| 93 , m_state(WebPresentationSessionState::Disconnected) | 93 , m_state(WebPresentationSessionState::Connected) |
| 94 { | 94 { |
| 95 } | 95 } |
| 96 | 96 |
| 97 PresentationSession::~PresentationSession() | 97 PresentationSession::~PresentationSession() |
| 98 { | 98 { |
| 99 ASSERT(!m_blobLoader); | 99 ASSERT(!m_blobLoader); |
| 100 } | 100 } |
| 101 | 101 |
| 102 // static | 102 // static |
| 103 PresentationSession* PresentationSession::take(WebPresentationSessionClient* cli
entRaw, Presentation* presentation) | 103 PresentationSession* PresentationSession::take(WebPresentationSessionClient* cli
entRaw, Presentation* presentation) |
| (...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 282 { | 282 { |
| 283 ASSERT(!m_messages.isEmpty() && m_messages.first()->type == MessageTypeBlob)
; | 283 ASSERT(!m_messages.isEmpty() && m_messages.first()->type == MessageTypeBlob)
; |
| 284 // FIXME: generate error message? | 284 // FIXME: generate error message? |
| 285 // Ignore the current failed blob item and continue with next items. | 285 // Ignore the current failed blob item and continue with next items. |
| 286 m_messages.removeFirst(); | 286 m_messages.removeFirst(); |
| 287 m_blobLoader.clear(); | 287 m_blobLoader.clear(); |
| 288 handleMessageQueue(); | 288 handleMessageQueue(); |
| 289 } | 289 } |
| 290 | 290 |
| 291 } // namespace blink | 291 } // namespace blink |
| OLD | NEW |