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

Unified Diff: chrome/browser/media/router/mojo/media_route_controller.h

Issue 2731033002: [Media Router] Custom Controls 3 - add plumbing through MRUI and MRWebUIMessageHandler (Closed)
Patch Set: Address Derek's comments Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/media/router/mojo/media_route_controller.h
diff --git a/chrome/browser/media/router/mojo/media_route_controller.h b/chrome/browser/media/router/mojo/media_route_controller.h
index 3d92a4be6f1d15e5ae5250ffd46059f5abfdb5e2..89939958e2a4247becfee02c3efbd1851087cf63 100644
--- a/chrome/browser/media/router/mojo/media_route_controller.h
+++ b/chrome/browser/media/router/mojo/media_route_controller.h
@@ -75,12 +75,13 @@ class MediaRouteController : public mojom::MediaStatusObserver,
MediaRouter* media_router);
// Media controller methods for forwarding commands to a
- // mojom::MediaControllerPtr held in |mojo_media_controller_|.
- void Play();
- void Pause();
- void Seek(base::TimeDelta time);
- void SetMute(bool mute);
- void SetVolume(float volume);
+ // mojom::MediaControllerPtr held in |mojo_media_controller_|. Overridden in
+ // tests.
+ virtual void Play();
+ virtual void Pause();
+ virtual void Seek(base::TimeDelta time);
+ virtual void SetMute(bool mute);
+ virtual void SetVolume(float volume);
// mojom::MediaStatusObserver:
// Notifies |observers_| of a status update.
@@ -96,11 +97,12 @@ class MediaRouteController : public mojom::MediaStatusObserver,
MediaRoute::Id route_id() const { return route_id_; }
+ protected:
+ ~MediaRouteController() override;
+
private:
friend class base::RefCounted<MediaRouteController>;
- ~MediaRouteController() override;
-
void AddObserver(Observer* observer);
void RemoveObserver(Observer* observer);

Powered by Google App Engine
This is Rietveld 408576698