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

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

Issue 2176613003: [Media Router] Clean up issues related code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IssueObserver init behavior and use StructTraits Created 4 years, 2 months 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 <memory> 8 #include <memory>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 bool CreateRoute(const MediaSink::Id& sink_id, MediaCastMode cast_mode); 108 bool CreateRoute(const MediaSink::Id& sink_id, MediaCastMode cast_mode);
109 109
110 // Calls MediaRouter to join the given route. 110 // Calls MediaRouter to join the given route.
111 bool ConnectRoute(const MediaSink::Id& sink_id, 111 bool ConnectRoute(const MediaSink::Id& sink_id,
112 const MediaRoute::Id& route_id); 112 const MediaRoute::Id& route_id);
113 113
114 // Calls MediaRouter to close the given route. 114 // Calls MediaRouter to close the given route.
115 void CloseRoute(const MediaRoute::Id& route_id); 115 void CloseRoute(const MediaRoute::Id& route_id);
116 116
117 // Calls MediaRouter to add the given issue. 117 // Calls MediaRouter to add the given issue.
118 void AddIssue(const Issue& issue); 118 void AddIssue(const IssueInfo& issue);
119 119
120 // Calls MediaRouter to clear the given issue. 120 // Calls MediaRouter to clear the given issue.
121 void ClearIssue(const Issue::Id& issue_id); 121 void ClearIssue(const Issue::Id& issue_id);
122 122
123 // Calls MediaRouter to search route providers for sinks matching 123 // Calls MediaRouter to search route providers for sinks matching
124 // |search_criteria| with the source that is currently associated with 124 // |search_criteria| with the source that is currently associated with
125 // |cast_mode|. The user's domain |domain| is also used. 125 // |cast_mode|. The user's domain |domain| is also used.
126 void SearchSinksAndCreateRoute(const MediaSink::Id& sink_id, 126 void SearchSinksAndCreateRoute(const MediaSink::Id& sink_id,
127 const std::string& search_criteria, 127 const std::string& search_criteria,
128 const std::string& domain, 128 const std::string& domain,
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
336 // NOTE: Weak pointers must be invalidated before all other member variables. 336 // NOTE: Weak pointers must be invalidated before all other member variables.
337 // Therefore |weak_factory_| must be placed at the end. 337 // Therefore |weak_factory_| must be placed at the end.
338 base::WeakPtrFactory<MediaRouterUI> weak_factory_; 338 base::WeakPtrFactory<MediaRouterUI> weak_factory_;
339 339
340 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); 340 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI);
341 }; 341 };
342 342
343 } // namespace media_router 343 } // namespace media_router
344 344
345 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ 345 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698