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

Side by Side Diff: Source/modules/presentation/PresentationSession.cpp

Issue 1209473003: Marks session as connected upon StartSession success (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "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
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698