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

Unified Diff: chrome/browser/media/router/local_media_routes_observer.h

Issue 1383653002: MediaRouterAction: Only observe Media Routes when there is a local route. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/local_media_routes_observer.h
diff --git a/chrome/browser/media/router/local_media_routes_observer.h b/chrome/browser/media/router/local_media_routes_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..54a4697745e669932aade9d8a63c85390b6132e7
--- /dev/null
+++ b/chrome/browser/media/router/local_media_routes_observer.h
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_MEDIA_ROUTER_LOCAL_MEDIA_ROUTES_OBSERVER_H_
+#define CHROME_BROWSER_MEDIA_ROUTER_LOCAL_MEDIA_ROUTES_OBSERVER_H_
+
+#include <vector>
+
+// #include "base/macros.h"
imcheng 2015/10/01 18:46:50 remove these includes? they don't appear to be use
apacible 2015/10/01 23:21:47 Done.
+#include "chrome/browser/media/router/media_route.h"
+
+namespace media_router {
+
+class MediaRouter;
+
+// Base class for observing when a new route has been created locally.
+class LocalMediaRoutesObserver {
+ public:
+ explicit LocalMediaRoutesObserver(MediaRouter* router);
+ virtual ~LocalMediaRoutesObserver();
+
+ // Called when a local route has been successfully created.
+ virtual void OnLocalRouteCreated() {}
+
+ private:
+ MediaRouter* router_;
imcheng 2015/10/01 18:46:49 MediaRouter* const router_;
apacible 2015/10/01 23:21:47 Done.
+
+ DISALLOW_COPY_AND_ASSIGN(LocalMediaRoutesObserver);
+};
+
+} // namespace media_router
+
+#endif // CHROME_BROWSER_MEDIA_ROUTER_LOCAL_MEDIA_ROUTES_OBSERVER_H_

Powered by Google App Engine
This is Rietveld 408576698