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

Side by Side Diff: extensions/common/extension_messages.cc

Issue 225493002: cleanup: cpplint src/extension/* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comment Created 6 years, 8 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 unified diff | Download patch
« no previous file with comments | « extensions/common/extension_api.h ('k') | extensions/common/stack_frame.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/common/extension_messages.h" 5 #include "extensions/common/extension_messages.h"
6 6
7 #include "content/public/common/common_param_traits.h" 7 #include "content/public/common/common_param_traits.h"
8 #include "extensions/common/extension.h" 8 #include "extensions/common/extension.h"
9 #include "extensions/common/manifest.h" 9 #include "extensions/common/manifest.h"
10 #include "extensions/common/manifest_handler.h" 10 #include "extensions/common/manifest_handler.h"
11 #include "extensions/common/permissions/permissions_data.h" 11 #include "extensions/common/permissions/permissions_data.h"
12 #include "extensions/common/permissions/permissions_info.h" 12 #include "extensions/common/permissions/permissions_info.h"
13 13
14 using extensions::APIPermission; 14 using extensions::APIPermission;
15 using extensions::APIPermissionInfo; 15 using extensions::APIPermissionInfo;
16 using extensions::APIPermissionSet; 16 using extensions::APIPermissionSet;
17 using extensions::Extension; 17 using extensions::Extension;
18 using extensions::Manifest; 18 using extensions::Manifest;
19 using extensions::ManifestHandler; 19 using extensions::ManifestHandler;
20 using extensions::ManifestPermission; 20 using extensions::ManifestPermission;
21 using extensions::ManifestPermissionSet; 21 using extensions::ManifestPermissionSet;
22 using extensions::PermissionSet; 22 using extensions::PermissionSet;
23 using extensions::URLPatternSet; 23 using extensions::URLPatternSet;
24 24
25 ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params() 25 ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params()
26 : location(Manifest::INVALID_LOCATION), 26 : location(Manifest::INVALID_LOCATION),
27 creation_flags(Extension::NO_FLAGS){} 27 creation_flags(Extension::NO_FLAGS) {}
28 28
29 ExtensionMsg_Loaded_Params::~ExtensionMsg_Loaded_Params() {} 29 ExtensionMsg_Loaded_Params::~ExtensionMsg_Loaded_Params() {}
30 30
31 ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params( 31 ExtensionMsg_Loaded_Params::ExtensionMsg_Loaded_Params(
32 const Extension* extension) 32 const Extension* extension)
33 : manifest(extension->manifest()->value()->DeepCopy()), 33 : manifest(extension->manifest()->value()->DeepCopy()),
34 location(extension->location()), 34 location(extension->location()),
35 path(extension->path()), 35 path(extension->path()),
36 apis(extension->GetActivePermissions()->apis()), 36 apis(extension->GetActivePermissions()->apis()),
37 manifest_permissions( 37 manifest_permissions(
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 ReadParam(m, iter, &p->explicit_hosts) && 241 ReadParam(m, iter, &p->explicit_hosts) &&
242 ReadParam(m, iter, &p->scriptable_hosts); 242 ReadParam(m, iter, &p->scriptable_hosts);
243 } 243 }
244 244
245 void ParamTraits<ExtensionMsg_Loaded_Params>::Log(const param_type& p, 245 void ParamTraits<ExtensionMsg_Loaded_Params>::Log(const param_type& p,
246 std::string* l) { 246 std::string* l) {
247 l->append(p.id); 247 l->append(p.id);
248 } 248 }
249 249
250 } // namespace IPC 250 } // namespace IPC
OLDNEW
« no previous file with comments | « extensions/common/extension_api.h ('k') | extensions/common/stack_frame.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698