| 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 91 // Calls MediaRouter to close the given route. | 91 // Calls MediaRouter to close the given route. |
| 92 void CloseRoute(const MediaRoute::Id& route_id); | 92 void CloseRoute(const MediaRoute::Id& route_id); |
| 93 | 93 |
| 94 // Calls MediaRouter to clear the given issue. | 94 // Calls MediaRouter to clear the given issue. |
| 95 void ClearIssue(const Issue::Id& issue_id); | 95 void ClearIssue(const Issue::Id& issue_id); |
| 96 | 96 |
| 97 // Returns the header text that should be displayed in the UI when it is | 97 // Returns the header text that should be displayed in the UI when it is |
| 98 // initially loaded. The header text is determined by the preferred cast mode. | 98 // initially loaded. The header text is determined by the preferred cast mode. |
| 99 std::string GetInitialHeaderText() const; | 99 std::string GetInitialHeaderText() const; |
| 100 | 100 |
| 101 // Returns the hostname of the default source's parent frame URL. |
| 102 std::string GetFrameURLHost() const; |
| 101 bool has_pending_route_request() const { return has_pending_route_request_; } | 103 bool has_pending_route_request() const { return has_pending_route_request_; } |
| 102 const GURL& frame_url() const { return frame_url_; } | 104 const GURL& frame_url() const { return frame_url_; } |
| 103 const std::vector<MediaSinkWithCastModes>& sinks() const { return sinks_; } | 105 const std::vector<MediaSinkWithCastModes>& sinks() const { return sinks_; } |
| 104 const std::vector<MediaRoute>& routes() const { return routes_; } | 106 const std::vector<MediaRoute>& routes() const { return routes_; } |
| 105 const std::set<MediaCastMode>& cast_modes() const { return cast_modes_; } | 107 const std::set<MediaCastMode>& cast_modes() const { return cast_modes_; } |
| 106 | 108 |
| 107 const content::WebContents* initiator() const { return initiator_; } | 109 const content::WebContents* initiator() const { return initiator_; } |
| 108 | 110 |
| 109 private: | 111 private: |
| 110 class UIIssuesObserver; | 112 class UIIssuesObserver; |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 // NOTE: Weak pointers must be invalidated before all other member variables. | 195 // NOTE: Weak pointers must be invalidated before all other member variables. |
| 194 // Therefore |weak_factory_| must be placed at the end. | 196 // Therefore |weak_factory_| must be placed at the end. |
| 195 base::WeakPtrFactory<MediaRouterUI> weak_factory_; | 197 base::WeakPtrFactory<MediaRouterUI> weak_factory_; |
| 196 | 198 |
| 197 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); | 199 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); |
| 198 }; | 200 }; |
| 199 | 201 |
| 200 } // namespace media_router | 202 } // namespace media_router |
| 201 | 203 |
| 202 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ | 204 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ |
| OLD | NEW |