| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |