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> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/gtest_prod_util.h" | 14 #include "base/gtest_prod_util.h" |
15 #include "base/macros.h" | 15 #include "base/macros.h" |
16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
17 #include "base/observer_list.h" | 17 #include "base/observer_list.h" |
18 #include "chrome/browser/media/router/media_router.h" | 18 #include "chrome/browser/media/router/media_router.h" |
19 #include "chrome/browser/media/router/media_source.h" | 19 #include "chrome/browser/media/router/media_source.h" |
20 #include "chrome/browser/media/router/presentation_request.h" | 20 #include "chrome/browser/media/router/presentation_request.h" |
21 #include "chrome/browser/media/router/render_frame_host_id.h" | 21 #include "chrome/browser/media/router/render_frame_host_id.h" |
22 #include "content/public/browser/presentation_service_delegate.h" | 22 #include "content/public/browser/presentation_service_delegate.h" |
23 #include "content/public/browser/web_contents_observer.h" | 23 #include "content/public/browser/web_contents_observer.h" |
24 #include "content/public/browser/web_contents_user_data.h" | 24 #include "content/public/browser/web_contents_user_data.h" |
25 | 25 |
26 namespace content { | 26 namespace content { |
27 class RenderFrameHost; | |
28 class PresentationScreenAvailabilityListener; | 27 class PresentationScreenAvailabilityListener; |
29 class WebContents; | 28 class WebContents; |
30 struct PresentationSessionInfo; | 29 struct PresentationSessionInfo; |
31 struct PresentationSessionMessage; | 30 struct PresentationSessionMessage; |
32 } // namespace content | 31 } // namespace content |
33 | 32 |
34 namespace media_router { | 33 namespace media_router { |
35 | 34 |
36 class MediaRoute; | 35 class MediaRoute; |
37 class MediaSinksObserver; | |
38 class PresentationFrameManager; | 36 class PresentationFrameManager; |
39 class RouteRequestResult; | 37 class RouteRequestResult; |
40 | 38 |
41 // Implementation of PresentationServiceDelegate that interfaces an instance of | 39 // Implementation of PresentationServiceDelegate that interfaces an instance of |
42 // WebContents with the Chrome Media Router. It uses the Media Router to handle | 40 // WebContents with the Chrome Media Router. It uses the Media Router to handle |
43 // presentation API calls forwarded from PresentationServiceImpl. In addition, | 41 // presentation API calls forwarded from PresentationServiceImpl. In addition, |
44 // it also provides default presentation URL that is required for creating | 42 // it also provides default presentation URL that is required for creating |
45 // browser-initiated sessions. It is scoped to the lifetime of a WebContents, | 43 // browser-initiated sessions. It is scoped to the lifetime of a WebContents, |
46 // and is managed by the associated WebContents. | 44 // and is managed by the associated WebContents. |
47 class PresentationServiceDelegateImpl | 45 class PresentationServiceDelegateImpl |
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 std::unique_ptr<PresentationFrameManager> frame_manager_; | 202 std::unique_ptr<PresentationFrameManager> frame_manager_; |
205 | 203 |
206 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; | 204 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; |
207 | 205 |
208 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); | 206 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); |
209 }; | 207 }; |
210 | 208 |
211 } // namespace media_router | 209 } // namespace media_router |
212 | 210 |
213 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ | 211 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ |
OLD | NEW |