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

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

Issue 1024903003: [Presentation API] Plumbing of |onstatechange| from the Mojo service to the public/platform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Call the Mojo method again from the callback 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 <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "content/browser/presentation/presentation_type_converters.h" 10 #include "content/browser/presentation/presentation_type_converters.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 availability_contexts_.erase(old_it); 273 availability_contexts_.erase(old_it);
274 DoSetDefaultPresentationUrl(new_default_url, default_presentation_id); 274 DoSetDefaultPresentationUrl(new_default_url, default_presentation_id);
275 } 275 }
276 276
277 void PresentationServiceImpl::CloseSession( 277 void PresentationServiceImpl::CloseSession(
278 const mojo::String& presentation_url, 278 const mojo::String& presentation_url,
279 const mojo::String& presentation_id) { 279 const mojo::String& presentation_id) {
280 NOTIMPLEMENTED(); 280 NOTIMPLEMENTED();
281 } 281 }
282 282
283 void PresentationServiceImpl::ListenForSessionStateChange(
284 const SessionStateCallback& callback) {
285 NOTIMPLEMENTED();
286 }
287
283 void PresentationServiceImpl::DidNavigateAnyFrame( 288 void PresentationServiceImpl::DidNavigateAnyFrame(
284 content::RenderFrameHost* render_frame_host, 289 content::RenderFrameHost* render_frame_host,
285 const content::LoadCommittedDetails& details, 290 const content::LoadCommittedDetails& details,
286 const content::FrameNavigateParams& params) { 291 const content::FrameNavigateParams& params) {
287 DVLOG(2) << "PresentationServiceImpl::DidNavigateAnyFrame"; 292 DVLOG(2) << "PresentationServiceImpl::DidNavigateAnyFrame";
288 if (render_frame_host_ != render_frame_host) 293 if (render_frame_host_ != render_frame_host)
289 return; 294 return;
290 295
291 std::string prev_url_host = details.previous_url.host(); 296 std::string prev_url_host = details.previous_url.host();
292 std::string curr_url_host = params.url.host(); 297 std::string curr_url_host = params.url.host();
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 : presentation_url(presentation_url), 412 : presentation_url(presentation_url),
408 presentation_id(presentation_id), 413 presentation_id(presentation_id),
409 callback(callback) { 414 callback(callback) {
410 } 415 }
411 416
412 PresentationServiceImpl::StartSessionRequest::~StartSessionRequest() { 417 PresentationServiceImpl::StartSessionRequest::~StartSessionRequest() {
413 } 418 }
414 419
415 } // namespace content 420 } // namespace content
416 421
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