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 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 const content::PresentationSessionErrorCallback& error_cb, | 188 const content::PresentationSessionErrorCallback& error_cb, |
189 const RouteRequestResult& result); | 189 const RouteRequestResult& result); |
190 | 190 |
191 void OnStartSessionSucceeded( | 191 void OnStartSessionSucceeded( |
192 int render_process_id, | 192 int render_process_id, |
193 int render_frame_id, | 193 int render_frame_id, |
194 const content::PresentationSessionStartedCallback& success_cb, | 194 const content::PresentationSessionStartedCallback& success_cb, |
195 const content::PresentationSessionInfo& new_session, | 195 const content::PresentationSessionInfo& new_session, |
196 const MediaRoute::Id& route_id); | 196 const MediaRoute::Id& route_id); |
197 | 197 |
| 198 // Returns true if auto-join requests should be cancelled for |origin|. |
| 199 bool ShouldOverrideAutoJoinForOrigin(const GURL& origin) const; |
| 200 |
198 // References to the WebContents that owns this instance, and associated | 201 // References to the WebContents that owns this instance, and associated |
199 // browser profile's MediaRouter instance. | 202 // browser profile's MediaRouter instance. |
200 content::WebContents* const web_contents_; | 203 content::WebContents* const web_contents_; |
201 MediaRouter* router_; | 204 MediaRouter* router_; |
202 | 205 |
203 std::unique_ptr<PresentationFrameManager> frame_manager_; | 206 std::unique_ptr<PresentationFrameManager> frame_manager_; |
204 | 207 |
205 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; | 208 base::WeakPtrFactory<PresentationServiceDelegateImpl> weak_factory_; |
206 | 209 |
207 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); | 210 DISALLOW_COPY_AND_ASSIGN(PresentationServiceDelegateImpl); |
208 }; | 211 }; |
209 | 212 |
210 } // namespace media_router | 213 } // namespace media_router |
211 | 214 |
212 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ | 215 #endif // CHROME_BROWSER_MEDIA_ROUTER_PRESENTATION_SERVICE_DELEGATE_IMPL_H_ |
OLD | NEW |