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 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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( | 259 void PresentationServiceImpl::CloseSession( |
260 const mojo::String& presentation_url, | 260 const mojo::String& presentation_url, |
261 const mojo::String& presentation_id) { | 261 const mojo::String& presentation_id) { |
262 NOTIMPLEMENTED(); | 262 NOTIMPLEMENTED(); |
263 } | 263 } |
264 | 264 |
| 265 void PresentationServiceImpl::ListenForSessionStateChange( |
| 266 const SessionStateCallback& callback) { |
| 267 NOTIMPLEMENTED(); |
| 268 } |
| 269 |
265 void PresentationServiceImpl::DidNavigateAnyFrame( | 270 void PresentationServiceImpl::DidNavigateAnyFrame( |
266 content::RenderFrameHost* render_frame_host, | 271 content::RenderFrameHost* render_frame_host, |
267 const content::LoadCommittedDetails& details, | 272 const content::LoadCommittedDetails& details, |
268 const content::FrameNavigateParams& params) { | 273 const content::FrameNavigateParams& params) { |
269 DVLOG(2) << "PresentationServiceImpl::DidNavigateAnyFrame"; | 274 DVLOG(2) << "PresentationServiceImpl::DidNavigateAnyFrame"; |
270 if (render_frame_host_ != render_frame_host) | 275 if (render_frame_host_ != render_frame_host) |
271 return; | 276 return; |
272 | 277 |
273 std::string prev_url_host = details.previous_url.host(); | 278 std::string prev_url_host = details.previous_url.host(); |
274 std::string curr_url_host = params.url.host(); | 279 std::string curr_url_host = params.url.host(); |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
378 const NewSessionMojoCallback& callback) | 383 const NewSessionMojoCallback& callback) |
379 : presentation_url(presentation_url), | 384 : presentation_url(presentation_url), |
380 presentation_id(presentation_id), | 385 presentation_id(presentation_id), |
381 callback(callback) { | 386 callback(callback) { |
382 } | 387 } |
383 | 388 |
384 PresentationServiceImpl::StartSessionRequest::~StartSessionRequest() { | 389 PresentationServiceImpl::StartSessionRequest::~StartSessionRequest() { |
385 } | 390 } |
386 | 391 |
387 } // namespace content | 392 } // namespace content |
OLD | NEW |