OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_ISSUES_OBSERVER_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_ISSUES_OBSERVER_H_ |
| 7 |
| 8 #include "chrome/browser/media/router/issue.h" |
| 9 |
| 10 namespace media_router { |
| 11 |
| 12 // Interface for observing when issues have been updated. |
| 13 // TODO(imcheng): Implement automatic register/unregister from MediaRouter. |
| 14 class IssuesObserver { |
| 15 public: |
| 16 virtual ~IssuesObserver() {} |
| 17 |
| 18 // Called when there is a new highest priority issue. |
| 19 // |issue| can be nullptr. |
| 20 virtual void OnIssueUpdated(const Issue* issue) = 0; |
| 21 }; |
| 22 |
| 23 } // namespace media_router |
| 24 |
| 25 #endif // CHROME_BROWSER_MEDIA_ROUTER_ISSUES_OBSERVER_H_ |
OLD | NEW |