Index: chrome/common/extensions/manifest_handler.h |
diff --git a/chrome/common/extensions/manifest_handler.h b/chrome/common/extensions/manifest_handler.h |
index 42f989bc4bb0e9dc53617d0773be08257fd02aef..431188e73980b44d1e3a4010c2ece834d9d1b63d 100644 |
--- a/chrome/common/extensions/manifest_handler.h |
+++ b/chrome/common/extensions/manifest_handler.h |
@@ -64,6 +64,13 @@ class ManifestHandler { |
// (new MyManifestHandler)->Register(); |
void Register(); |
+ virtual void AddPermissionWarningMessages( |
+ const Extension* extension, |
+ std::vector<string16>& messages) const; |
+ virtual void AddPermissionWarningMessagesDetails( |
+ const Extension* extension, |
+ std::vector<string16>& messages) const; |
+ |
// Calling FinalizeRegistration indicates that there are no more |
// manifest handlers to be registered. |
static void FinalizeRegistration(); |
@@ -79,6 +86,11 @@ class ManifestHandler { |
std::string* error, |
std::vector<InstallWarning>* warnings); |
+ static std::vector<string16> GetExtensionPermissionWarningMessages( |
+ const Extension* extension); |
+ static std::vector<string16> GetExtensionPermissionWarningMessagesDetails( |
+ const Extension* extension); |
+ |
protected: |
// A convenience method for handlers that only register for 1 key, |
// so that they can define keys() { return SingleKey(kKey); } |
@@ -108,6 +120,11 @@ class ManifestHandlerRegistry { |
std::string* error, |
std::vector<InstallWarning>* warnings); |
+ std::vector<string16> GetExtensionPermissionWarningMessages( |
+ const Extension* extension); |
+ std::vector<string16> GetExtensionPermissionWarningMessagesDetails( |
+ const Extension* extension); |
+ |
// Overrides the current global ManifestHandlerRegistry with |
// |registry|, returning the current one. |
static ManifestHandlerRegistry* SetForTesting( |