| 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 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 318 const mojo::String& presentation_url, | 318 const mojo::String& presentation_url, |
| 319 const mojo::String& presentation_id) { | 319 const mojo::String& presentation_id) { |
| 320 NOTIMPLEMENTED(); | 320 NOTIMPLEMENTED(); |
| 321 } | 321 } |
| 322 | 322 |
| 323 void PresentationServiceImpl::ListenForSessionStateChange( | 323 void PresentationServiceImpl::ListenForSessionStateChange( |
| 324 const SessionStateCallback& callback) { | 324 const SessionStateCallback& callback) { |
| 325 NOTIMPLEMENTED(); | 325 NOTIMPLEMENTED(); |
| 326 } | 326 } |
| 327 | 327 |
| 328 void PresentationServiceImpl::ListenForSessionTextMessage( |
| 329 const SessionTextMessageCallback& callback) { |
| 330 NOTIMPLEMENTED(); |
| 331 } |
| 332 |
| 328 void PresentationServiceImpl::DidNavigateAnyFrame( | 333 void PresentationServiceImpl::DidNavigateAnyFrame( |
| 329 content::RenderFrameHost* render_frame_host, | 334 content::RenderFrameHost* render_frame_host, |
| 330 const content::LoadCommittedDetails& details, | 335 const content::LoadCommittedDetails& details, |
| 331 const content::FrameNavigateParams& params) { | 336 const content::FrameNavigateParams& params) { |
| 332 DVLOG(2) << "PresentationServiceImpl::DidNavigateAnyFrame"; | 337 DVLOG(2) << "PresentationServiceImpl::DidNavigateAnyFrame"; |
| 333 if (render_frame_host_ != render_frame_host) | 338 if (render_frame_host_ != render_frame_host) |
| 334 return; | 339 return; |
| 335 | 340 |
| 336 std::string prev_url_host = details.previous_url.host(); | 341 std::string prev_url_host = details.previous_url.host(); |
| 337 std::string curr_url_host = params.url.host(); | 342 std::string curr_url_host = params.url.host(); |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 473 | 478 |
| 474 PresentationServiceImpl::NewSessionMojoCallback | 479 PresentationServiceImpl::NewSessionMojoCallback |
| 475 PresentationServiceImpl::StartSessionRequest::PassCallback() { | 480 PresentationServiceImpl::StartSessionRequest::PassCallback() { |
| 476 NewSessionMojoCallback callback = callback_; | 481 NewSessionMojoCallback callback = callback_; |
| 477 callback_.reset(); | 482 callback_.reset(); |
| 478 return callback; | 483 return callback; |
| 479 } | 484 } |
| 480 | 485 |
| 481 } // namespace content | 486 } // namespace content |
| 482 | 487 |
| OLD | NEW |