| 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/public/browser/content_browser_client.h" | 8 #include "content/public/browser/content_browser_client.h" |
| 9 #include "content/public/browser/navigation_details.h" | 9 #include "content/public/browser/navigation_details.h" |
| 10 #include "content/public/browser/render_frame_host.h" | 10 #include "content/public/browser/render_frame_host.h" |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 92 std::make_pair(presentation_url_str, context)).first; | 92 std::make_pair(presentation_url_str, context)).first; |
| 93 } | 93 } |
| 94 | 94 |
| 95 it->second->CallbackReceived(callback); | 95 it->second->CallbackReceived(callback); |
| 96 } | 96 } |
| 97 | 97 |
| 98 void PresentationServiceImpl::OnScreenAvailabilityListenerRemoved() { | 98 void PresentationServiceImpl::OnScreenAvailabilityListenerRemoved() { |
| 99 NOTIMPLEMENTED(); | 99 NOTIMPLEMENTED(); |
| 100 } | 100 } |
| 101 | 101 |
| 102 void PresentationServiceImpl::WaitForDefaultPresentation( |
| 103 const DefaultPresentationMojoCallback& callback) { |
| 104 NOTIMPLEMENTED(); |
| 105 } |
| 106 |
| 107 void PresentationServiceImpl::OnDefaultPresentationListenerRemoved() { |
| 108 NOTIMPLEMENTED(); |
| 109 } |
| 110 |
| 102 void PresentationServiceImpl::StartSession( | 111 void PresentationServiceImpl::StartSession( |
| 103 const mojo::String& presentation_url, | 112 const mojo::String& presentation_url, |
| 104 const mojo::String& presentation_id, | 113 const mojo::String& presentation_id, |
| 105 const NewSessionMojoCallback& callback) { | 114 const NewSessionMojoCallback& callback) { |
| 106 NOTIMPLEMENTED(); | 115 NOTIMPLEMENTED(); |
| 107 } | 116 } |
| 108 | 117 |
| 109 void PresentationServiceImpl::JoinSession( | 118 void PresentationServiceImpl::JoinSession( |
| 110 const mojo::String& presentation_url, | 119 const mojo::String& presentation_url, |
| 111 const mojo::String& presentation_id, | 120 const mojo::String& presentation_id, |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 } else { | 218 } else { |
| 210 // Invoke callback and erase it. | 219 // Invoke callback and erase it. |
| 211 // There shouldn't be any result stored in this scenario. | 220 // There shouldn't be any result stored in this scenario. |
| 212 DCHECK(!available_ptr_); | 221 DCHECK(!available_ptr_); |
| 213 callback_ptr_->Run(available); | 222 callback_ptr_->Run(available); |
| 214 Reset(); | 223 Reset(); |
| 215 } | 224 } |
| 216 } | 225 } |
| 217 | 226 |
| 218 } // namespace content | 227 } // namespace content |
| OLD | NEW |