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
{
14 // Base class for observing Media Router Issue. There is at most one Issue
16 class IssuesObserver
{
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
) {}
28 DISALLOW_COPY_AND_ASSIGN(IssuesObserver
);
31 } // namespace media_router
33 #endif // CHROME_BROWSER_MEDIA_ROUTER_ISSUES_OBSERVER_H_