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

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: Removing Logging Statements 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
100 // Calls MediaRouter to join the given route.
101 bool CanJoinRoute(const MediaRoute::Id& route_id);
102
97 // Calls MediaRouter to close the given route. 103 // Calls MediaRouter to close the given route.
98 void CloseRoute(const MediaRoute::Id& route_id); 104 void CloseRoute(const MediaRoute::Id& route_id);
99 105
100 // Calls MediaRouter to add the given issue. 106 // Calls MediaRouter to add the given issue.
101 void AddIssue(const Issue& issue); 107 void AddIssue(const Issue& issue);
102 108
103 // Calls MediaRouter to clear the given issue. 109 // Calls MediaRouter to clear the given issue.
104 void ClearIssue(const Issue::Id& issue_id); 110 void ClearIssue(const Issue::Id& issue_id);
105 111
106 // Returns the hostname of the default source's parent frame URL. 112 // 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. 236 // NOTE: Weak pointers must be invalidated before all other member variables.
231 // Therefore |weak_factory_| must be placed at the end. 237 // Therefore |weak_factory_| must be placed at the end.
232 base::WeakPtrFactory<MediaRouterUI> weak_factory_; 238 base::WeakPtrFactory<MediaRouterUI> weak_factory_;
233 239
234 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); 240 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI);
235 }; 241 };
236 242
237 } // namespace media_router 243 } // namespace media_router
238 244
239 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ 245 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698