OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_ISSUE_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_ISSUE_MANAGER_H_ |
6 #define CHROME_BROWSER_MEDIA_ROUTER_ISSUE_MANAGER_H_ | 6 #define CHROME_BROWSER_MEDIA_ROUTER_ISSUE_MANAGER_H_ |
7 | 7 |
8 #include <stddef.h> | 8 #include <stddef.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <vector> | 11 #include <vector> |
12 | 12 |
13 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "base/observer_list.h" | 15 #include "base/observer_list.h" |
16 #include "chrome/browser/media/router/issue.h" | |
17 #include "chrome/browser/media/router/issues_observer.h" | 16 #include "chrome/browser/media/router/issues_observer.h" |
| 17 #include "chrome/common/media_router/issue.h" |
18 | 18 |
19 namespace media_router { | 19 namespace media_router { |
20 | 20 |
21 // IssueManager keeps track of current issues related to casting | 21 // IssueManager keeps track of current issues related to casting |
22 // connectivity and quality. It lives on the UI thread. | 22 // connectivity and quality. It lives on the UI thread. |
23 // TODO(apacible): Determine what other issues will be handled here. | 23 // TODO(apacible): Determine what other issues will be handled here. |
24 class IssueManager { | 24 class IssueManager { |
25 public: | 25 public: |
26 IssueManager(); | 26 IssueManager(); |
27 ~IssueManager(); | 27 ~IssueManager(); |
(...skipping 30 matching lines...) Expand all Loading... |
58 | 58 |
59 // ID of the top Issue in |issues_|, or |nullptr| if there are no issues. | 59 // ID of the top Issue in |issues_|, or |nullptr| if there are no issues. |
60 const Issue* top_issue_; | 60 const Issue* top_issue_; |
61 | 61 |
62 DISALLOW_COPY_AND_ASSIGN(IssueManager); | 62 DISALLOW_COPY_AND_ASSIGN(IssueManager); |
63 }; | 63 }; |
64 | 64 |
65 } // namespace media_router | 65 } // namespace media_router |
66 | 66 |
67 #endif // CHROME_BROWSER_MEDIA_ROUTER_ISSUE_MANAGER_H_ | 67 #endif // CHROME_BROWSER_MEDIA_ROUTER_ISSUE_MANAGER_H_ |
OLD | NEW |