Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/browser/extensions/extension_warning_set.h

Issue 102103005: Move c/c/e/extension_set to top-level extensions/ (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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_SET_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_SET_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_SET_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_SET_H_
7 7
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "url/gurl.h" 12 #include "url/gurl.h"
13 13
14 // TODO(battre) Remove the Extension prefix. 14 // TODO(battre) Remove the Extension prefix.
15 15
16 namespace base { 16 namespace base {
17 class FilePath; 17 class FilePath;
18 } 18 }
19 19
20 namespace extensions {
21
20 class ExtensionSet; 22 class ExtensionSet;
21 23
22 namespace extensions {
23
24 // This class is used by the ExtensionWarningService to represent warnings if 24 // This class is used by the ExtensionWarningService to represent warnings if
25 // extensions misbehave. Note that the ExtensionWarningService deals only with 25 // extensions misbehave. Note that the ExtensionWarningService deals only with
26 // specific warnings that should trigger a badge on the Chrome menu button. 26 // specific warnings that should trigger a badge on the Chrome menu button.
27 class ExtensionWarning { 27 class ExtensionWarning {
28 public: 28 public:
29 enum WarningType { 29 enum WarningType {
30 // Don't use this, it is only intended for the default constructor and 30 // Don't use this, it is only intended for the default constructor and
31 // does not have localized warning messages for the UI. 31 // does not have localized warning messages for the UI.
32 kInvalid = 0, 32 kInvalid = 0,
33 // An extension caused excessive network delays. 33 // An extension caused excessive network delays.
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 // Compare ExtensionWarnings based on the tuple of (extension_id, type). 112 // Compare ExtensionWarnings based on the tuple of (extension_id, type).
113 // The message associated with ExtensionWarnings is purely informational 113 // The message associated with ExtensionWarnings is purely informational
114 // and does not contribute to distinguishing extensions. 114 // and does not contribute to distinguishing extensions.
115 bool operator<(const ExtensionWarning& a, const ExtensionWarning& b); 115 bool operator<(const ExtensionWarning& a, const ExtensionWarning& b);
116 116
117 typedef std::set<ExtensionWarning> ExtensionWarningSet; 117 typedef std::set<ExtensionWarning> ExtensionWarningSet;
118 118
119 } // namespace extensions 119 } // namespace extensions
120 120
121 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_SET_H_ 121 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_WARNING_SET_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_warning_service.h ('k') | chrome/browser/extensions/extension_warning_set.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698