Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1476)

Side by Side Diff: chrome/browser/ui/webui/media_router/media_router_ui.h

Issue 1415103006: Non-Local Join for Media Router and Presentation API (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Auto-Formatting Fixes Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
87 // Notifies this instance that the UI has been initialized. 87 // Notifies this instance that the UI has been initialized.
88 void UIInitialized(); 88 void UIInitialized();
89 89
90 // Requests a route be created from the source mapped to 90 // Requests a route be created from the source mapped to
91 // |cast_mode|, to the sink given by |sink_id|. 91 // |cast_mode|, to the sink given by |sink_id|.
92 // Returns true if a route request is successfully submitted. 92 // Returns true if a route request is successfully submitted.
93 // |OnRouteResponseReceived()| will be invoked when the route request 93 // |OnRouteResponseReceived()| will be invoked when the route request
94 // completes. 94 // completes.
95 bool CreateRoute(const MediaSink::Id& sink_id, MediaCastMode cast_mode); 95 bool CreateRoute(const MediaSink::Id& sink_id, MediaCastMode cast_mode);
96 96
97 // Calls MediaRouter to join the given route.
98 bool JoinRoute(const MediaSink::Id& sink_id, const MediaRoute::Id& route_id);
99
97 // Calls MediaRouter to close the given route. 100 // Calls MediaRouter to close the given route.
98 void CloseRoute(const MediaRoute::Id& route_id); 101 void CloseRoute(const MediaRoute::Id& route_id);
99 102
100 // Calls MediaRouter to add the given issue. 103 // Calls MediaRouter to add the given issue.
101 void AddIssue(const Issue& issue); 104 void AddIssue(const Issue& issue);
102 105
103 // Calls MediaRouter to clear the given issue. 106 // Calls MediaRouter to clear the given issue.
104 void ClearIssue(const Issue::Id& issue_id); 107 void ClearIssue(const Issue::Id& issue_id);
105 108
106 // Returns the hostname of the default source's parent frame URL. 109 // Returns the hostname of the default source's parent frame URL.
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // NOTE: Weak pointers must be invalidated before all other member variables. 233 // NOTE: Weak pointers must be invalidated before all other member variables.
231 // Therefore |weak_factory_| must be placed at the end. 234 // Therefore |weak_factory_| must be placed at the end.
232 base::WeakPtrFactory<MediaRouterUI> weak_factory_; 235 base::WeakPtrFactory<MediaRouterUI> weak_factory_;
233 236
234 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); 237 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI);
235 }; 238 };
236 239
237 } // namespace media_router 240 } // namespace media_router
238 241
239 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ 242 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698