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

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

Issue 8823017: Apparently we're supposed to forward the manifest_version attribute to the (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "chrome/common/extensions/extension_messages.h" 5 #include "chrome/common/extensions/extension_messages.h"
6 6
7 #include "chrome/common/extensions/extension_constants.h" 7 #include "chrome/common/extensions/extension_constants.h"
8 #include "chrome/common/extensions/manifest.h" 8 #include "chrome/common/extensions/manifest.h"
9 #include "content/public/common/common_param_traits.h" 9 #include "content/public/common/common_param_traits.h"
10 10
(...skipping 23 matching lines...) Expand all
34 explicit_hosts(extension->GetActivePermissions()->explicit_hosts()), 34 explicit_hosts(extension->GetActivePermissions()->explicit_hosts()),
35 scriptable_hosts(extension->GetActivePermissions()->scriptable_hosts()), 35 scriptable_hosts(extension->GetActivePermissions()->scriptable_hosts()),
36 id(extension->id()), 36 id(extension->id()),
37 creation_flags(extension->creation_flags()) { 37 creation_flags(extension->creation_flags()) {
38 // As we need more bits of extension data in the renderer, add more keys to 38 // As we need more bits of extension data in the renderer, add more keys to
39 // this list. 39 // this list.
40 const char* kRendererExtensionKeys[] = { 40 const char* kRendererExtensionKeys[] = {
41 extension_manifest_keys::kApp, 41 extension_manifest_keys::kApp,
42 extension_manifest_keys::kContentScripts, 42 extension_manifest_keys::kContentScripts,
43 extension_manifest_keys::kIcons, 43 extension_manifest_keys::kIcons,
44 extension_manifest_keys::kManifestVersion,
44 extension_manifest_keys::kName, 45 extension_manifest_keys::kName,
45 extension_manifest_keys::kPageAction, 46 extension_manifest_keys::kPageAction,
46 extension_manifest_keys::kPageActions, 47 extension_manifest_keys::kPageActions,
47 extension_manifest_keys::kPermissions, 48 extension_manifest_keys::kPermissions,
48 extension_manifest_keys::kPlatformApp, 49 extension_manifest_keys::kPlatformApp,
49 extension_manifest_keys::kPublicKey, 50 extension_manifest_keys::kPublicKey,
50 extension_manifest_keys::kVersion, 51 extension_manifest_keys::kVersion,
51 }; 52 };
52 53
53 // Copy only the data we need and bypass the manifest type checks. 54 // Copy only the data we need and bypass the manifest type checks.
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 ReadParam(m, iter, &p->explicit_hosts) && 190 ReadParam(m, iter, &p->explicit_hosts) &&
190 ReadParam(m, iter, &p->scriptable_hosts); 191 ReadParam(m, iter, &p->scriptable_hosts);
191 } 192 }
192 193
193 void ParamTraits<ExtensionMsg_Loaded_Params>::Log(const param_type& p, 194 void ParamTraits<ExtensionMsg_Loaded_Params>::Log(const param_type& p,
194 std::string* l) { 195 std::string* l) {
195 l->append(p.id); 196 l->append(p.id);
196 } 197 }
197 198
198 } // namespace IPC 199 } // namespace IPC
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698