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

Unified 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, 11 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 side-by-side diff with in-line comments
Download patch
Index: extensions/common/install_warning.h
diff --git a/extensions/common/install_warning.h b/extensions/common/install_warning.h
new file mode 100644
index 0000000000000000000000000000000000000000..a4772c431e14b77cf45543be401e6865a42b077a
--- /dev/null
+++ b/extensions/common/install_warning.h
@@ -0,0 +1,34 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef EXTENSIONS_COMMON_INSTALL_WARNING_H_
+#define EXTENSIONS_COMMON_INSTALL_WARNING_H_
+
+#include <string>
+#include <vector>
+
+namespace extensions {
+
+struct InstallWarning {
+ 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.
+
+ enum Format {
+ // IMPORTANT: Do not build HTML strings from user or developer-supplied
+ // input.
+ FORMAT_TEXT,
+ FORMAT_HTML,
+ };
+ InstallWarning(Format format, const std::string& message)
+ : format(format), message(message) {
+ }
+ bool operator==(const InstallWarning& other) const {
+ return format == other.format && message == other.message;
+ }
+ Format format;
+ std::string message;
+};
+
+} // namespace
+
+#endif // EXTENSIONS_COMMON_INSTALL_WARNING_H_
« 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