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 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
293 | 293 |
294 // Remove listener for old default presentation URL. | 294 // Remove listener for old default presentation URL. |
295 delegate_->RemoveScreenAvailabilityListener( | 295 delegate_->RemoveScreenAvailabilityListener( |
296 render_frame_host_->GetProcess()->GetID(), | 296 render_frame_host_->GetProcess()->GetID(), |
297 render_frame_host_->GetRoutingID(), | 297 render_frame_host_->GetRoutingID(), |
298 old_it->second.get()); | 298 old_it->second.get()); |
299 availability_contexts_.erase(old_it); | 299 availability_contexts_.erase(old_it); |
300 DoSetDefaultPresentationUrl(new_default_url, default_presentation_id); | 300 DoSetDefaultPresentationUrl(new_default_url, default_presentation_id); |
301 } | 301 } |
302 | 302 |
| 303 void PresentationServiceImpl::SendStringMessage( |
| 304 const mojo::String& presentation_url, |
| 305 const mojo::String& presentation_id, |
| 306 const mojo::String& message, |
| 307 const SendMessageMojoCallback& callback) { |
| 308 NOTIMPLEMENTED(); |
| 309 } |
| 310 |
303 void PresentationServiceImpl::CloseSession( | 311 void PresentationServiceImpl::CloseSession( |
304 const mojo::String& presentation_url, | 312 const mojo::String& presentation_url, |
305 const mojo::String& presentation_id) { | 313 const mojo::String& presentation_id) { |
306 NOTIMPLEMENTED(); | 314 NOTIMPLEMENTED(); |
307 } | 315 } |
308 | 316 |
309 void PresentationServiceImpl::ListenForSessionStateChange( | 317 void PresentationServiceImpl::ListenForSessionStateChange( |
310 const SessionStateCallback& callback) { | 318 const SessionStateCallback& callback) { |
311 NOTIMPLEMENTED(); | 319 NOTIMPLEMENTED(); |
312 } | 320 } |
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
455 : presentation_url(presentation_url), | 463 : presentation_url(presentation_url), |
456 presentation_id(presentation_id), | 464 presentation_id(presentation_id), |
457 callback(callback) { | 465 callback(callback) { |
458 } | 466 } |
459 | 467 |
460 PresentationServiceImpl::StartSessionRequest::~StartSessionRequest() { | 468 PresentationServiceImpl::StartSessionRequest::~StartSessionRequest() { |
461 } | 469 } |
462 | 470 |
463 } // namespace content | 471 } // namespace content |
464 | 472 |
OLD | NEW |