| 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 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 263 void OnDefaultPresentationChanged( | 263 void OnDefaultPresentationChanged( |
| 264 const PresentationRequest& presentation_request) override; | 264 const PresentationRequest& presentation_request) override; |
| 265 void OnDefaultPresentationRemoved() override; | 265 void OnDefaultPresentationRemoved() override; |
| 266 | 266 |
| 267 // Populates common route-related parameters for CreateRoute(), | 267 // Populates common route-related parameters for CreateRoute(), |
| 268 // ConnectRoute(), and SearchSinksAndCreateRoute(). | 268 // ConnectRoute(), and SearchSinksAndCreateRoute(). |
| 269 bool SetRouteParameters( | 269 bool SetRouteParameters( |
| 270 const MediaSink::Id& sink_id, | 270 const MediaSink::Id& sink_id, |
| 271 MediaCastMode cast_mode, | 271 MediaCastMode cast_mode, |
| 272 MediaSource::Id* source_id, | 272 MediaSource::Id* source_id, |
| 273 url::Origin* origin, | 273 GURL* origin, |
| 274 std::vector<MediaRouteResponseCallback>* route_response_callbacks, | 274 std::vector<MediaRouteResponseCallback>* route_response_callbacks, |
| 275 base::TimeDelta* timeout, | 275 base::TimeDelta* timeout, |
| 276 bool* incognito); | 276 bool* incognito); |
| 277 | 277 |
| 278 // Updates the set of supported cast modes and sends the updated set to | 278 // Updates the set of supported cast modes and sends the updated set to |
| 279 // |handler_|. | 279 // |handler_|. |
| 280 void UpdateCastModes(); | 280 void UpdateCastModes(); |
| 281 | 281 |
| 282 // Updates the routes-to-cast-modes mapping in |routes_and_cast_modes_| to | 282 // Updates the routes-to-cast-modes mapping in |routes_and_cast_modes_| to |
| 283 // match the value of |routes_|. | 283 // match the value of |routes_|. |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 // NOTE: Weak pointers must be invalidated before all other member variables. | 351 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 352 // Therefore |weak_factory_| must be placed at the end. | 352 // Therefore |weak_factory_| must be placed at the end. |
| 353 base::WeakPtrFactory<MediaRouterUI> weak_factory_; | 353 base::WeakPtrFactory<MediaRouterUI> weak_factory_; |
| 354 | 354 |
| 355 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); | 355 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); |
| 356 }; | 356 }; |
| 357 | 357 |
| 358 } // namespace media_router | 358 } // namespace media_router |
| 359 | 359 |
| 360 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ | 360 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ |
| OLD | NEW |