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

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

Issue 12965009: Remove the limit of number of commands per extension, but keep the limit of 4 shortcuts per extensi… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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.h" 5 #include "chrome/common/extensions/extension.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/file_util.h" 10 #include "base/file_util.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 using extensions::csp_validator::ContentSecurityPolicyIsLegal; 70 using extensions::csp_validator::ContentSecurityPolicyIsLegal;
71 using extensions::csp_validator::ContentSecurityPolicyIsSandboxed; 71 using extensions::csp_validator::ContentSecurityPolicyIsSandboxed;
72 72
73 namespace extensions { 73 namespace extensions {
74 74
75 namespace { 75 namespace {
76 76
77 const int kModernManifestVersion = 2; 77 const int kModernManifestVersion = 2;
78 const int kPEMOutputColumns = 65; 78 const int kPEMOutputColumns = 65;
79 79
80 // The maximum number of commands (including page action/browser actions) an
81 // extension can have.
82 const size_t kMaxCommandsPerExtension = 4;
83
84 // KEY MARKERS 80 // KEY MARKERS
85 const char kKeyBeginHeaderMarker[] = "-----BEGIN"; 81 const char kKeyBeginHeaderMarker[] = "-----BEGIN";
86 const char kKeyBeginFooterMarker[] = "-----END"; 82 const char kKeyBeginFooterMarker[] = "-----END";
87 const char kKeyInfoEndMarker[] = "KEY-----"; 83 const char kKeyInfoEndMarker[] = "KEY-----";
88 const char kPublic[] = "PUBLIC"; 84 const char kPublic[] = "PUBLIC";
89 const char kPrivate[] = "PRIVATE"; 85 const char kPrivate[] = "PRIVATE";
90 86
91 const int kRSAKeySize = 1024; 87 const int kRSAKeySize = 1024;
92 88
93 const char kDefaultSandboxedPageContentSecurityPolicy[] = 89 const char kDefaultSandboxedPageContentSecurityPolicy[] =
(...skipping 2029 matching lines...) Expand 10 before | Expand all | Expand 10 after
2123 2119
2124 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 2120 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
2125 const Extension* extension, 2121 const Extension* extension,
2126 const PermissionSet* permissions, 2122 const PermissionSet* permissions,
2127 Reason reason) 2123 Reason reason)
2128 : reason(reason), 2124 : reason(reason),
2129 extension(extension), 2125 extension(extension),
2130 permissions(permissions) {} 2126 permissions(permissions) {}
2131 2127
2132 } // namespace extensions 2128 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/docs/templates/intros/commands.html ('k') | chrome/common/extensions/extension_manifest_constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698