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

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

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_messages.h ('k') | chrome/common/extensions/extension_permission_set.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/extensions/extension_messages.cc
diff --git a/chrome/common/extensions/extension_messages.cc b/chrome/common/extensions/extension_messages.cc
index 829309700c993198afc67ebc8cb82b71a6eda109..c50487af9c599ddfa4860d0854b21450c9c620aa 100644
--- a/chrome/common/extensions/extension_messages.cc
+++ b/chrome/common/extensions/extension_messages.cc
@@ -10,6 +10,7 @@
#include "content/public/common/common_param_traits.h"
using extensions::Extension;
+using extensions::PermissionSet;
ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params()
: location(Extension::INVALID),
@@ -42,7 +43,7 @@ scoped_refptr<Extension>
}
extension->SetActivePermissions(
- new ExtensionPermissionSet(apis, explicit_hosts, scriptable_hosts));
+ new PermissionSet(apis, explicit_hosts, scriptable_hosts));
return extension;
}
@@ -118,22 +119,22 @@ void ParamTraits<URLPatternSet>::Log(const param_type& p, std::string* l) {
LogParam(p.patterns(), l);
}
-void ParamTraits<ExtensionAPIPermission::ID>::Write(
+void ParamTraits<APIPermission::ID>::Write(
Message* m, const param_type& p) {
WriteParam(m, static_cast<int>(p));
}
-bool ParamTraits<ExtensionAPIPermission::ID>::Read(
+bool ParamTraits<APIPermission::ID>::Read(
const Message* m, PickleIterator* iter, param_type* p) {
int api_id = -2;
if (!ReadParam(m, iter, &api_id))
return false;
- *p = static_cast<ExtensionAPIPermission::ID>(api_id);
+ *p = static_cast<APIPermission::ID>(api_id);
return true;
}
-void ParamTraits<ExtensionAPIPermission::ID>::Log(
+void ParamTraits<APIPermission::ID>::Log(
const param_type& p, std::string* l) {
LogParam(static_cast<int>(p), l);
}
« no previous file with comments | « chrome/common/extensions/extension_messages.h ('k') | chrome/common/extensions/extension_permission_set.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698