Add ICU message format support
[chromium-blink-merge.git] / chrome / browser / media / router / issues_observer.h
blobd8b4258692658ae94f5e9b99f7514f725f4f1e19
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.
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_ISSUES_OBSERVER_H_
6 #define CHROME_BROWSER_MEDIA_ROUTER_ISSUES_OBSERVER_H_
8 #include "chrome/browser/media/router/issue.h"
10 namespace media_router {
12 class MediaRouter;
14 // Base class for observing Media Router Issue. There is at most one Issue
15 // at any given time.
16 class IssuesObserver {
17 public:
18 explicit IssuesObserver(MediaRouter* router);
19 virtual ~IssuesObserver();
21 // Called when there is an updated Media Router Issue.
22 // If |issue| is nullptr, then there is currently no issue.
23 virtual void OnIssueUpdated(const Issue* issue) {}
25 private:
26 MediaRouter* router_;
28 DISALLOW_COPY_AND_ASSIGN(IssuesObserver);
31 } // namespace media_router
33 #endif // CHROME_BROWSER_MEDIA_ROUTER_ISSUES_OBSERVER_H_