| 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 <set> | 8 #include <set> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 161 void SetIssue(const Issue* issue); | 161 void SetIssue(const Issue* issue); |
| 162 | 162 |
| 163 // Called by |routes_observer_| when the set of active routes has changed. | 163 // Called by |routes_observer_| when the set of active routes has changed. |
| 164 void OnRoutesUpdated(const std::vector<MediaRoute>& routes); | 164 void OnRoutesUpdated(const std::vector<MediaRoute>& routes); |
| 165 | 165 |
| 166 // Callback passed to MediaRouter to receive response to route creation | 166 // Callback passed to MediaRouter to receive response to route creation |
| 167 // requests. | 167 // requests. |
| 168 void OnRouteResponseReceived(const MediaSink::Id& sink_id, | 168 void OnRouteResponseReceived(const MediaSink::Id& sink_id, |
| 169 const MediaRoute* route, | 169 const MediaRoute* route, |
| 170 const std::string& presentation_id, | 170 const std::string& presentation_id, |
| 171 const std::string& error); | 171 const std::string& error, |
| 172 bool is_one_ua_presentation); |
| 172 | 173 |
| 173 bool DoCreateRoute(const MediaSink::Id& sink_id, MediaCastMode cast_mode); | 174 bool DoCreateRoute(const MediaSink::Id& sink_id, MediaCastMode cast_mode); |
| 174 | 175 |
| 175 // Sets the source host name to be displayed in the UI. | 176 // Sets the source host name to be displayed in the UI. |
| 176 // Gets cast modes from |query_result_manager_| and forwards it to UI. | 177 // Gets cast modes from |query_result_manager_| and forwards it to UI. |
| 177 // One of the Init* functions must have been called before. | 178 // One of the Init* functions must have been called before. |
| 178 void UpdateSourceHostAndCastModes(const GURL& frame_url); | 179 void UpdateSourceHostAndCastModes(const GURL& frame_url); |
| 179 | 180 |
| 180 // Initializes the dialog with mirroring sources derived from |initiator|, | 181 // Initializes the dialog with mirroring sources derived from |initiator|, |
| 181 // and optional |default_source| and |default_frame_url| if any. | 182 // and optional |default_source| and |default_frame_url| if any. |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 // NOTE: Weak pointers must be invalidated before all other member variables. | 233 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 233 // Therefore |weak_factory_| must be placed at the end. | 234 // Therefore |weak_factory_| must be placed at the end. |
| 234 base::WeakPtrFactory<MediaRouterUI> weak_factory_; | 235 base::WeakPtrFactory<MediaRouterUI> weak_factory_; |
| 235 | 236 |
| 236 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); | 237 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); |
| 237 }; | 238 }; |
| 238 | 239 |
| 239 } // namespace media_router | 240 } // namespace media_router |
| 240 | 241 |
| 241 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ | 242 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ |
| OLD | NEW |