summaryrefslogtreecommitdiffstats
path: root/chrome/common/extensions/extension_messages.h
diff options
context:
space:
mode:
authorjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 14:50:40 +0000
committerjstritar@chromium.org <jstritar@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-07-27 14:50:40 +0000
commit59759fcfdc091c9c77db249a6781308c8c3fd942 (patch)
tree89636f8f63059458e4acc57d8a7c67533b4fb726 /chrome/common/extensions/extension_messages.h
parent38383b194bc471ebba4de124cbf391b00114923a (diff)
downloadchromium_src-59759fcfdc091c9c77db249a6781308c8c3fd942.zip
chromium_src-59759fcfdc091c9c77db249a6781308c8c3fd942.tar.gz
chromium_src-59759fcfdc091c9c77db249a6781308c8c3fd942.tar.bz2
Revert 94288 - Add an experimental permissions API for extensions.
The permissions API lets extensions specify optional permissions in their manifest that they can request at run-time. It currently supports API permissions through a white-list. Host permissions will come later. BUG=48119, 70466, 84507 TEST=*Extension* Review URL: http://codereview.chromium.org/7432006 TBR=jstritar@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@94289 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/extensions/extension_messages.h')
-rw-r--r--chrome/common/extensions/extension_messages.h28
1 files changed, 1 insertions, 27 deletions
diff --git a/chrome/common/extensions/extension_messages.h b/chrome/common/extensions/extension_messages.h
index 6d41b9c..53abba6 100644
--- a/chrome/common/extensions/extension_messages.h
+++ b/chrome/common/extensions/extension_messages.h
@@ -8,7 +8,6 @@
#include "base/shared_memory.h"
#include "base/values.h"
#include "chrome/common/extensions/extension.h"
-#include "chrome/common/extensions/extension_permission_set.h"
#include "chrome/common/extensions/url_pattern.h"
#include "chrome/common/extensions/url_pattern_set.h"
#include "chrome/common/web_apps.h"
@@ -91,9 +90,7 @@ typedef std::map<std::string, std::string> SubstitutionMap;
struct ExtensionMsg_Loaded_Params {
ExtensionMsg_Loaded_Params();
~ExtensionMsg_Loaded_Params();
- explicit ExtensionMsg_Loaded_Params(
- const Extension* extension,
- const ExtensionPermissionSet* active_permissions);
+ explicit ExtensionMsg_Loaded_Params(const Extension* extension);
// A copy constructor is needed because this structure can end up getting
// copied inside the IPC machinery on gcc <= 4.2.
@@ -102,9 +99,6 @@ struct ExtensionMsg_Loaded_Params {
// Creates a new extension from the data in this object.
scoped_refptr<Extension> ConvertToExtension() const;
- // Passes ownership to the caller.
- const ExtensionPermissionSet* GetActivePermissions() const;
-
// The subset of the extension manifest data we send to renderers.
scoped_ptr<DictionaryValue> manifest;
@@ -115,11 +109,6 @@ struct ExtensionMsg_Loaded_Params {
// to generate the extension ID for extensions that are loaded unpacked.
FilePath path;
- // The extension's current active permissions.
- ExtensionAPIPermissionSet apis;
- URLPatternSet explicit_hosts;
- URLPatternSet scriptable_hosts;
-
// We keep this separate so that it can be used in logging.
std::string id;
@@ -146,14 +135,6 @@ struct ParamTraits<URLPatternSet> {
};
template <>
-struct ParamTraits<ExtensionAPIPermission::ID> {
- typedef ExtensionAPIPermission::ID param_type;
- static void Write(Message* m, const param_type& p);
- static bool Read(const Message* m, void** iter, param_type* p);
- static void Log(const param_type& p, std::string* l);
-};
-
-template <>
struct ParamTraits<ExtensionMsg_Loaded_Params> {
typedef ExtensionMsg_Loaded_Params param_type;
static void Write(Message* m, const param_type& p);
@@ -233,13 +214,6 @@ IPC_MESSAGE_ROUTED1(ExtensionMsg_GetApplicationInfo,
IPC_MESSAGE_ROUTED1(ExtensionMsg_UpdateBrowserWindowId,
int /* id of browser window */)
-// Tell the renderer to update an extension's permission set.
-IPC_MESSAGE_CONTROL4(ExtensionMsg_UpdatePermissions,
- std::string /* extension_id*/,
- ExtensionAPIPermissionSet,
- URLPatternSet,
- URLPatternSet)
-
// Tell the renderer which type this view is.
IPC_MESSAGE_ROUTED1(ExtensionMsg_NotifyRenderViewType,
ViewType::Type /* view_type */)