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

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

Issue 2874283002: [Media Router] Notify MRUI of a media status update when it starts observing (Closed)
Patch Set: Address Mark's comments Created 3 years, 7 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 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, 195 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest,
196 GetExtensionNameEmptyWhenNotInstalled); 196 GetExtensionNameEmptyWhenNotInstalled);
197 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, 197 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest,
198 GetExtensionNameEmptyWhenNotExtensionURL); 198 GetExtensionNameEmptyWhenNotExtensionURL);
199 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, 199 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest,
200 RouteCreationTimeoutForPresentation); 200 RouteCreationTimeoutForPresentation);
201 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, RouteRequestFromIncognito); 201 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, RouteRequestFromIncognito);
202 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, OpenAndCloseUIDetailsView); 202 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, OpenAndCloseUIDetailsView);
203 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, SendMediaCommands); 203 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, SendMediaCommands);
204 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, SendMediaStatusUpdate); 204 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, SendMediaStatusUpdate);
205 FRIEND_TEST_ALL_PREFIXES(MediaRouterUITest, SendInitialMediaStatusUpdate);
205 206
206 class UIIssuesObserver; 207 class UIIssuesObserver;
207 208
208 class UIMediaRoutesObserver : public MediaRoutesObserver { 209 class UIMediaRoutesObserver : public MediaRoutesObserver {
209 public: 210 public:
210 using RoutesUpdatedCallback = 211 using RoutesUpdatedCallback =
211 base::Callback<void(const std::vector<MediaRoute>&, 212 base::Callback<void(const std::vector<MediaRoute>&,
212 const std::vector<MediaRoute::Id>&)>; 213 const std::vector<MediaRoute::Id>&)>;
213 UIMediaRoutesObserver(MediaRouter* router, 214 UIMediaRoutesObserver(MediaRouter* router,
214 const MediaSource::Id& source_id, 215 const MediaSource::Id& source_id,
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 // NOTE: Weak pointers must be invalidated before all other member variables. 396 // NOTE: Weak pointers must be invalidated before all other member variables.
396 // Therefore |weak_factory_| must be placed at the end. 397 // Therefore |weak_factory_| must be placed at the end.
397 base::WeakPtrFactory<MediaRouterUI> weak_factory_; 398 base::WeakPtrFactory<MediaRouterUI> weak_factory_;
398 399
399 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI); 400 DISALLOW_COPY_AND_ASSIGN(MediaRouterUI);
400 }; 401 };
401 402
402 } // namespace media_router 403 } // namespace media_router
403 404
404 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_ 405 #endif // CHROME_BROWSER_UI_WEBUI_MEDIA_ROUTER_MEDIA_ROUTER_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/media/router/mojo/media_route_controller.cc ('k') | chrome/browser/ui/webui/media_router/media_router_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698