| 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 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 #include <memory> | 9 #include <memory> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 friend class content::WebContentsUserData<PresentationServiceDelegateImpl>; | 178 friend class content::WebContentsUserData<PresentationServiceDelegateImpl>; |
| 179 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, | 179 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, |
| 180 DelegateObservers); | 180 DelegateObservers); |
| 181 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, | 181 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, |
| 182 SetDefaultPresentationUrl); | 182 SetDefaultPresentationUrl); |
| 183 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, | 183 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, |
| 184 DefaultPresentationRequestObserver); | 184 DefaultPresentationRequestObserver); |
| 185 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, | 185 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, |
| 186 DefaultPresentationUrlCallback); | 186 DefaultPresentationUrlCallback); |
| 187 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, | 187 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, |
| 188 TestCloseConnectionForOffscreenPresentation); |
| 189 FRIEND_TEST_ALL_PREFIXES(PresentationServiceDelegateImplTest, |
| 188 ConnectToPresentation); | 190 ConnectToPresentation); |
| 189 | 191 |
| 190 explicit PresentationServiceDelegateImpl(content::WebContents* web_contents); | 192 explicit PresentationServiceDelegateImpl(content::WebContents* web_contents); |
| 191 | 193 |
| 192 // Returns |listener|'s presentation URL as a MediaSource. If |listener| does | 194 // Returns |listener|'s presentation URL as a MediaSource. If |listener| does |
| 193 // not have a persentation URL, returns the tab mirroring MediaSource. | 195 // not have a persentation URL, returns the tab mirroring MediaSource. |
| 194 MediaSource GetMediaSourceFromListener( | 196 MediaSource GetMediaSourceFromListener( |
| 195 content::PresentationScreenAvailabilityListener* listener); | 197 content::PresentationScreenAvailabilityListener* listener); |
| 196 | 198 |
| 197 void OnJoinRouteResponse( | 199 void OnJoinRouteResponse( |
| (...skipping 26 matching lines...) Expand all Loading... |
| 224 PresentationServiceDelegateObservers observers_; | 226 PresentationServiceDelegateObservers observers_; |
| 225 | 227 |
| 226 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; | 228 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; |
| 227 | 229 |
| 228 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); | 230 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); |
| 229 }; | 231 }; |
| 230 | 232 |
| 231 } // namespace media_router | 233 } // namespace media_router |
| 232 | 234 |
| 233 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ | 235 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ |
| OLD | NEW |