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::ListenForDefaultPresentationStart( |
| 103 const DefaultPresentationMojoCallback& callback) { |
| 104 NOTIMPLEMENTED(); |
| 105 } |
| 106 |
102 void PresentationServiceImpl::StartSession( | 107 void PresentationServiceImpl::StartSession( |
103 const mojo::String& presentation_url, | 108 const mojo::String& presentation_url, |
104 const mojo::String& presentation_id, | 109 const mojo::String& presentation_id, |
105 const NewSessionMojoCallback& callback) { | 110 const NewSessionMojoCallback& callback) { |
106 NOTIMPLEMENTED(); | 111 NOTIMPLEMENTED(); |
107 } | 112 } |
108 | 113 |
109 void PresentationServiceImpl::JoinSession( | 114 void PresentationServiceImpl::JoinSession( |
110 const mojo::String& presentation_url, | 115 const mojo::String& presentation_url, |
111 const mojo::String& presentation_id, | 116 const mojo::String& presentation_id, |
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 } else { | 214 } else { |
210 // Invoke callback and erase it. | 215 // Invoke callback and erase it. |
211 // There shouldn't be any result stored in this scenario. | 216 // There shouldn't be any result stored in this scenario. |
212 DCHECK(!available_ptr_); | 217 DCHECK(!available_ptr_); |
213 callback_ptr_->Run(available); | 218 callback_ptr_->Run(available); |
214 Reset(); | 219 Reset(); |
215 } | 220 } |
216 } | 221 } |
217 | 222 |
218 } // namespace content | 223 } // namespace content |
OLD | NEW |