| 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 256 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 267 | 267 |
| 268 // Remove listener for old default presentation URL. | 268 // Remove listener for old default presentation URL. |
| 269 delegate_->RemoveScreenAvailabilityListener( | 269 delegate_->RemoveScreenAvailabilityListener( |
| 270 render_frame_host_->GetProcess()->GetID(), | 270 render_frame_host_->GetProcess()->GetID(), |
| 271 render_frame_host_->GetRoutingID(), | 271 render_frame_host_->GetRoutingID(), |
| 272 old_it->second.get()); | 272 old_it->second.get()); |
| 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::PostMessage( |
| 278 const mojo::String& presentation_url, |
| 279 const mojo::String& presentation_id, |
| 280 const mojo::String& message) { |
| 281 NOTIMPLEMENTED(); |
| 282 } |
| 283 |
| 277 void PresentationServiceImpl::CloseSession( | 284 void PresentationServiceImpl::CloseSession( |
| 278 const mojo::String& presentation_url, | 285 const mojo::String& presentation_url, |
| 279 const mojo::String& presentation_id) { | 286 const mojo::String& presentation_id) { |
| 280 NOTIMPLEMENTED(); | 287 NOTIMPLEMENTED(); |
| 281 } | 288 } |
| 282 | 289 |
| 283 void PresentationServiceImpl::DidNavigateAnyFrame( | 290 void PresentationServiceImpl::DidNavigateAnyFrame( |
| 284 content::RenderFrameHost* render_frame_host, | 291 content::RenderFrameHost* render_frame_host, |
| 285 const content::LoadCommittedDetails& details, | 292 const content::LoadCommittedDetails& details, |
| 286 const content::FrameNavigateParams& params) { | 293 const content::FrameNavigateParams& params) { |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 407 : presentation_url(presentation_url), | 414 : presentation_url(presentation_url), |
| 408 presentation_id(presentation_id), | 415 presentation_id(presentation_id), |
| 409 callback(callback) { | 416 callback(callback) { |
| 410 } | 417 } |
| 411 | 418 |
| 412 PresentationServiceImpl::StartSessionRequest::~StartSessionRequest() { | 419 PresentationServiceImpl::StartSessionRequest::~StartSessionRequest() { |
| 413 } | 420 } |
| 414 | 421 |
| 415 } // namespace content | 422 } // namespace content |
| 416 | 423 |
| OLD | NEW |