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

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

Issue 2859953002: Reland [Media Router] Custom Controls 3 - add plumbing through MRUI and MRWebUIMessageHandler (Closed)
Patch Set: Fix test failures 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
« no previous file with comments | « no previous file | chrome/browser/media/router/mojo/media_route_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..5a5fab0bc132e11c94d9715cc02d71e9f550a224 100644
--- a/chrome/browser/media/router/mojo/media_route_controller.h
+++ b/chrome/browser/media/router/mojo/media_route_controller.h
@@ -76,11 +76,11 @@ class MediaRouteController : public mojom::MediaStatusObserver,
// 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);
+ virtual void Play() const;
+ virtual void Pause() const;
+ virtual void Seek(base::TimeDelta time) const;
+ virtual void SetMute(bool mute) const;
+ virtual void SetVolume(float volume) const;
// mojom::MediaStatusObserver:
// Notifies |observers_| of a status update.
@@ -96,11 +96,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);
« no previous file with comments | « no previous file | chrome/browser/media/router/mojo/media_route_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698