| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |