| 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 "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/browser/presentation/presentation_type_converters.h" | 8 #include "content/browser/presentation/presentation_type_converters.h" |
| 9 #include "content/public/browser/content_browser_client.h" | 9 #include "content/public/browser/content_browser_client.h" |
| 10 #include "content/public/browser/navigation_details.h" | 10 #include "content/public/browser/navigation_details.h" |
| (...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 249 | 249 |
| 250 // Remove listener for old default presentation URL. | 250 // Remove listener for old default presentation URL. |
| 251 delegate_->RemoveScreenAvailabilityListener( | 251 delegate_->RemoveScreenAvailabilityListener( |
| 252 render_frame_host_->GetProcess()->GetID(), | 252 render_frame_host_->GetProcess()->GetID(), |
| 253 render_frame_host_->GetRoutingID(), | 253 render_frame_host_->GetRoutingID(), |
| 254 old_it->second.get()); | 254 old_it->second.get()); |
| 255 availability_contexts_.erase(old_it); | 255 availability_contexts_.erase(old_it); |
| 256 DoSetDefaultPresentationUrl(new_default_url, default_presentation_id); | 256 DoSetDefaultPresentationUrl(new_default_url, default_presentation_id); |
| 257 } | 257 } |
| 258 | 258 |
| 259 void PresentationServiceImpl::CloseSession( |
| 260 const mojo::String& presentation_url, |
| 261 const mojo::String& presentation_id) { |
| 262 NOTIMPLEMENTED(); |
| 263 } |
| 264 |
| 259 void PresentationServiceImpl::DidNavigateAnyFrame( | 265 void PresentationServiceImpl::DidNavigateAnyFrame( |
| 260 content::RenderFrameHost* render_frame_host, | 266 content::RenderFrameHost* render_frame_host, |
| 261 const content::LoadCommittedDetails& details, | 267 const content::LoadCommittedDetails& details, |
| 262 const content::FrameNavigateParams& params) { | 268 const content::FrameNavigateParams& params) { |
| 263 DVLOG(2) << "PresentationServiceImpl::DidNavigateAnyFrame"; | 269 DVLOG(2) << "PresentationServiceImpl::DidNavigateAnyFrame"; |
| 264 if (render_frame_host_ != render_frame_host) | 270 if (render_frame_host_ != render_frame_host) |
| 265 return; | 271 return; |
| 266 | 272 |
| 267 std::string prev_url_host = details.previous_url.host(); | 273 std::string prev_url_host = details.previous_url.host(); |
| 268 std::string curr_url_host = params.url.host(); | 274 std::string curr_url_host = params.url.host(); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 const NewSessionMojoCallback& callback) | 378 const NewSessionMojoCallback& callback) |
| 373 : presentation_url(presentation_url), | 379 : presentation_url(presentation_url), |
| 374 presentation_id(presentation_id), | 380 presentation_id(presentation_id), |
| 375 callback(callback) { | 381 callback(callback) { |
| 376 } | 382 } |
| 377 | 383 |
| 378 PresentationServiceImpl::StartSessionRequest::~StartSessionRequest() { | 384 PresentationServiceImpl::StartSessionRequest::~StartSessionRequest() { |
| 379 } | 385 } |
| 380 | 386 |
| 381 } // namespace content | 387 } // namespace content |
| OLD | NEW |