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

Unified Diff: chrome/common/extensions/extension_messages.h

Issue 10649003: Move each permission classes to its own files in extensions/permissions (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rebase on HEAD Created 8 years, 6 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
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/common/extensions/extension_messages.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_messages.h
diff --git a/chrome/common/extensions/extension_messages.h b/chrome/common/extensions/extension_messages.h
index 9745bf225eb5888ad2271d259ff0ad5749a22be8..7608a6a6a07eca03854e40f4f45d7f742d6afddb 100644
--- a/chrome/common/extensions/extension_messages.h
+++ b/chrome/common/extensions/extension_messages.h
@@ -8,7 +8,7 @@
#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/permissions/permission_set.h"
#include "chrome/common/extensions/url_pattern.h"
#include "chrome/common/extensions/url_pattern_set.h"
#include "chrome/common/view_type.h"
@@ -16,6 +16,9 @@
#include "content/public/common/common_param_traits.h"
#include "ipc/ipc_message_macros.h"
+using extensions::APIPermission;
+using extensions::APIPermissionSet;
+
#define IPC_MESSAGE_START ExtensionMsgStart
IPC_ENUM_TRAITS(chrome::ViewType)
@@ -122,7 +125,7 @@ struct ExtensionMsg_Loaded_Params {
FilePath path;
// The extension's active permissions.
- ExtensionAPIPermissionSet apis;
+ APIPermissionSet apis;
URLPatternSet explicit_hosts;
URLPatternSet scriptable_hosts;
@@ -152,8 +155,8 @@ struct ParamTraits<URLPatternSet> {
};
template <>
-struct ParamTraits<ExtensionAPIPermission::ID> {
- typedef ExtensionAPIPermission::ID param_type;
+struct ParamTraits<APIPermission::ID> {
+ typedef APIPermission::ID param_type;
static void Write(Message* m, const param_type& p);
static bool Read(const Message* m, PickleIterator* iter, param_type* p);
static void Log(const param_type& p, std::string* l);
@@ -247,7 +250,7 @@ IPC_MESSAGE_ROUTED1(ExtensionMsg_SetTabId,
IPC_MESSAGE_CONTROL5(ExtensionMsg_UpdatePermissions,
int /* UpdateExtensionPermissionsInfo::REASON */,
std::string /* extension_id */,
- ExtensionAPIPermissionSet /* permissions */,
+ APIPermissionSet /* permissions */,
URLPatternSet /* explicit_hosts */,
URLPatternSet /* scriptable_hosts */)
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/common/extensions/extension_messages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698