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

Side by Side Diff: extensions/common/install_warning.h

Issue 12093036: Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 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.
4
5 #ifndef EXTENSIONS_COMMON_INSTALL_WARNING_H_
6 #define EXTENSIONS_COMMON_INSTALL_WARNING_H_
7
8 #include <string>
9 #include <vector>
10
11 namespace extensions {
12
13 struct InstallWarning {
14 typedef std::vector<InstallWarning> Vector;
Jeffrey Yasskin 2013/01/29 22:54:07 Is this typedef worth having? std::vector<InstallW
Yoyo Zhou 2013/01/30 01:16:01 Might as well remove it.
15
16 enum Format {
17 // IMPORTANT: Do not build HTML strings from user or developer-supplied
18 // input.
19 FORMAT_TEXT,
20 FORMAT_HTML,
21 };
22 InstallWarning(Format format, const std::string& message)
23 : format(format), message(message) {
24 }
25 bool operator==(const InstallWarning& other) const {
26 return format == other.format && message == other.message;
27 }
28 Format format;
29 std::string message;
30 };
31
32 } // namespace
33
34 #endif // EXTENSIONS_COMMON_INSTALL_WARNING_H_
OLDNEW
« chrome/common/extensions/manifest.cc ('K') | « chrome/utility/chrome_content_utility_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698