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

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

Issue 1103273013: Upstream the Media Router's Issue class. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Resync with master. Created 5 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 | « chrome/browser/media/router/issue_unittest.cc ('k') | chrome/browser/media/router/media_router.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/media/router/issues_observer.h
diff --git a/chrome/browser/media/router/issues_observer.h b/chrome/browser/media/router/issues_observer.h
new file mode 100644
index 0000000000000000000000000000000000000000..33443ddd0bd705b9796bb0494a4c976ddbfd1492
--- /dev/null
+++ b/chrome/browser/media/router/issues_observer.h
@@ -0,0 +1,25 @@
+// 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_ISSUES_OBSERVER_H_
+#define CHROME_BROWSER_MEDIA_ROUTER_ISSUES_OBSERVER_H_
+
+#include "chrome/browser/media/router/issue.h"
+
+namespace media_router {
+
+// Interface for observing when issues have been updated.
+// TODO(imcheng): Implement automatic register/unregister from MediaRouter.
+class IssuesObserver {
+ public:
+ virtual ~IssuesObserver() {}
+
+ // Called when there is a new highest priority issue.
+ // |issue| can be nullptr.
+ virtual void OnIssueUpdated(const Issue* issue) = 0;
+};
+
+} // namespace media_router
+
+#endif // CHROME_BROWSER_MEDIA_ROUTER_ISSUES_OBSERVER_H_
« no previous file with comments | « chrome/browser/media/router/issue_unittest.cc ('k') | chrome/browser/media/router/media_router.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698