| 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_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ |
| 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <string> | 10 #include <string> |
| (...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 255 | 255 |
| 256 // Populates common route-related parameters for CreateRoute(), | 256 // Populates common route-related parameters for CreateRoute(), |
| 257 // ConnectRoute(), and SearchSinksAndCreateRoute(). | 257 // ConnectRoute(), and SearchSinksAndCreateRoute(). |
| 258 bool SetRouteParameters( | 258 bool SetRouteParameters( |
| 259 const MediaSink::Id& sink_id, | 259 const MediaSink::Id& sink_id, |
| 260 MediaCastMode cast_mode, | 260 MediaCastMode cast_mode, |
| 261 MediaSource::Id* source_id, | 261 MediaSource::Id* source_id, |
| 262 GURL* origin, | 262 GURL* origin, |
| 263 std::vector<MediaRouteResponseCallback>* route_response_callbacks, | 263 std::vector<MediaRouteResponseCallback>* route_response_callbacks, |
| 264 base::TimeDelta* timeout, | 264 base::TimeDelta* timeout, |
| 265 bool* off_the_record); | 265 bool* incognito); |
| 266 | 266 |
| 267 // Updates the set of supported cast modes and sends the updated set to | 267 // Updates the set of supported cast modes and sends the updated set to |
| 268 // |handler_|. | 268 // |handler_|. |
| 269 void UpdateCastModes(); | 269 void UpdateCastModes(); |
| 270 | 270 |
| 271 // Returns the default presentation request's frame URL if there is one. | 271 // Returns the default presentation request's frame URL if there is one. |
| 272 // Otherwise returns an empty GURL. | 272 // Otherwise returns an empty GURL. |
| 273 GURL GetFrameURL() const; | 273 GURL GetFrameURL() const; |
| 274 | 274 |
| 275 // Owned by the |web_ui| passed in the ctor, and guaranteed to be deleted | 275 // Owned by the |web_ui| passed in the ctor, and guaranteed to be deleted |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 332 // NOTE: Weak pointers must be invalidated before all other member variables. | 332 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 333 // Therefore |weak_factory_| must be placed at the end. | 333 // Therefore |weak_factory_| must be placed at the end. |
| 334 base::WeakPtrFactory<MediaRouterUI> weak_factory_; | 334 base::WeakPtrFactory<MediaRouterUI> weak_factory_; |
| 335 | 335 |
| 336 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); | 336 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); |
| 337 }; | 337 }; |
| 338 | 338 |
| 339 } // namespace media_router | 339 } // namespace media_router |
| 340 | 340 |
| 341 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ | 341 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ |
| OLD | NEW |