| 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 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 const MediaRoute::Id& route_id); | 230 const MediaRoute::Id& route_id); |
| 231 | 231 |
| 232 // Updates the set of supported cast modes and sends the updated set to | 232 // Updates the set of supported cast modes and sends the updated set to |
| 233 // |handler_|. | 233 // |handler_|. |
| 234 void UpdateCastModes(); | 234 void UpdateCastModes(); |
| 235 | 235 |
| 236 // Returns the default presentation request's frame URL if there is one. | 236 // Returns the default presentation request's frame URL if there is one. |
| 237 // Otherwise returns an empty GURL. | 237 // Otherwise returns an empty GURL. |
| 238 GURL GetFrameURL() const; | 238 GURL GetFrameURL() const; |
| 239 | 239 |
| 240 GURL GetOrigin(bool for_default_source) const; |
| 241 |
| 240 // Owned by the |web_ui| passed in the ctor, and guaranteed to be deleted | 242 // Owned by the |web_ui| passed in the ctor, and guaranteed to be deleted |
| 241 // only after it has deleted |this|. | 243 // only after it has deleted |this|. |
| 242 MediaRouterWebUIMessageHandler* handler_; | 244 MediaRouterWebUIMessageHandler* handler_; |
| 243 | 245 |
| 244 // These are non-null while this instance is registered to receive | 246 // These are non-null while this instance is registered to receive |
| 245 // updates from them. | 247 // updates from them. |
| 246 scoped_ptr<IssuesObserver> issues_observer_; | 248 scoped_ptr<IssuesObserver> issues_observer_; |
| 247 scoped_ptr<MediaRoutesObserver> routes_observer_; | 249 scoped_ptr<MediaRoutesObserver> routes_observer_; |
| 248 | 250 |
| 249 // Set to true by |handler_| when the UI has been initialized. | 251 // Set to true by |handler_| when the UI has been initialized. |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 // NOTE: Weak pointers must be invalidated before all other member variables. | 298 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 297 // Therefore |weak_factory_| must be placed at the end. | 299 // Therefore |weak_factory_| must be placed at the end. |
| 298 base::WeakPtrFactory<MediaRouterUI> weak_factory_; | 300 base::WeakPtrFactory<MediaRouterUI> weak_factory_; |
| 299 | 301 |
| 300 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); | 302 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); |
| 301 }; | 303 }; |
| 302 | 304 |
| 303 } // namespace media_router | 305 } // namespace media_router |
| 304 | 306 |
| 305 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ | 307 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ |
| OLD | NEW |