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

Side by Side Diff: content/browser/presentation/presentation_service_impl.cc

Issue 978543002: [Presentation API] Plumbing the |defaultpresentationstart| event from Blink to browser/Mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Renamed DefaultPresentation to DefaultSession in line with the Blink CL Created 5 years, 9 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "content/browser/presentation/presentation_service_impl.h" 5 #include "content/browser/presentation/presentation_service_impl.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "content/public/browser/content_browser_client.h" 8 #include "content/public/browser/content_browser_client.h"
9 #include "content/public/browser/navigation_details.h" 9 #include "content/public/browser/navigation_details.h"
10 #include "content/public/browser/render_frame_host.h" 10 #include "content/public/browser/render_frame_host.h"
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 std::make_pair(presentation_url_str, context)).first; 92 std::make_pair(presentation_url_str, context)).first;
93 } 93 }
94 94
95 it->second->CallbackReceived(callback); 95 it->second->CallbackReceived(callback);
96 } 96 }
97 97
98 void PresentationServiceImpl::OnScreenAvailabilityListenerRemoved() { 98 void PresentationServiceImpl::OnScreenAvailabilityListenerRemoved() {
99 NOTIMPLEMENTED(); 99 NOTIMPLEMENTED();
100 } 100 }
101 101
102 void PresentationServiceImpl::ListenForDefaultSessionStart(
103 const DefaultSessionMojoCallback& callback) {
104 NOTIMPLEMENTED();
105 }
106
102 void PresentationServiceImpl::StartSession( 107 void PresentationServiceImpl::StartSession(
103 const mojo::String& presentation_url, 108 const mojo::String& presentation_url,
104 const mojo::String& presentation_id, 109 const mojo::String& presentation_id,
105 const NewSessionMojoCallback& callback) { 110 const NewSessionMojoCallback& callback) {
106 NOTIMPLEMENTED(); 111 NOTIMPLEMENTED();
107 } 112 }
108 113
109 void PresentationServiceImpl::JoinSession( 114 void PresentationServiceImpl::JoinSession(
110 const mojo::String& presentation_url, 115 const mojo::String& presentation_url,
111 const mojo::String& presentation_id, 116 const mojo::String& presentation_id,
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
209 } else { 214 } else {
210 // Invoke callback and erase it. 215 // Invoke callback and erase it.
211 // There shouldn't be any result stored in this scenario. 216 // There shouldn't be any result stored in this scenario.
212 DCHECK(!available_ptr_); 217 DCHECK(!available_ptr_);
213 callback_ptr_->Run(available); 218 callback_ptr_->Run(available);
214 Reset(); 219 Reset();
215 } 220 }
216 } 221 }
217 222
218 } // namespace content 223 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/presentation/presentation_service_impl.h ('k') | content/common/presentation/presentation_service.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698