OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/threading/non_thread_safe.h" | 9 #include "base/threading/non_thread_safe.h" |
10 #include "chrome/browser/extensions/extension_warning_service.h" | 10 #include "extensions/browser/extension_warning_service.h" |
11 #include "chrome/browser/extensions/extension_warning_set.h" | 11 #include "extensions/browser/extension_warning_set.h" |
12 | 12 |
13 // TODO(battre): Rename ExtensionWarningBadgeService to WarningBadgeService. | 13 // TODO(battre): Rename ExtensionWarningBadgeService to WarningBadgeService. |
14 | 14 |
15 class Profile; | 15 class Profile; |
16 | 16 |
17 namespace extensions { | 17 namespace extensions { |
18 | 18 |
19 // A service that is responsible for showing an extension warning badge on the | 19 // A service that is responsible for showing an extension warning badge on the |
20 // wrench menu. | 20 // wrench menu. |
21 class ExtensionWarningBadgeService : public ExtensionWarningService::Observer, | 21 class ExtensionWarningBadgeService : public ExtensionWarningService::Observer, |
(...skipping 21 matching lines...) Expand all Loading... |
43 | 43 |
44 // Warnings that do not trigger a badge on the wrench menu. | 44 // Warnings that do not trigger a badge on the wrench menu. |
45 ExtensionWarningSet suppressed_warnings_; | 45 ExtensionWarningSet suppressed_warnings_; |
46 | 46 |
47 DISALLOW_COPY_AND_ASSIGN(ExtensionWarningBadgeService); | 47 DISALLOW_COPY_AND_ASSIGN(ExtensionWarningBadgeService); |
48 }; | 48 }; |
49 | 49 |
50 } // namespace extensions | 50 } // namespace extensions |
51 | 51 |
52 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ | 52 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_BADGE_SERVICE_H_ |
OLD | NEW |