OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_path.h" | 10 #include "base/file_path.h" |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
50 #include "webkit/glue/web_intent_service_data.h" | 50 #include "webkit/glue/web_intent_service_data.h" |
51 | 51 |
52 namespace keys = extension_manifest_keys; | 52 namespace keys = extension_manifest_keys; |
53 namespace values = extension_manifest_values; | 53 namespace values = extension_manifest_values; |
54 namespace errors = extension_manifest_errors; | 54 namespace errors = extension_manifest_errors; |
55 namespace info_keys = extension_info_keys; | 55 namespace info_keys = extension_info_keys; |
56 | 56 |
57 using extensions::csp_validator::ContentSecurityPolicyIsLegal; | 57 using extensions::csp_validator::ContentSecurityPolicyIsLegal; |
58 using extensions::csp_validator::ContentSecurityPolicyIsSecure; | 58 using extensions::csp_validator::ContentSecurityPolicyIsSecure; |
59 | 59 |
| 60 namespace extensions { |
| 61 |
60 namespace { | 62 namespace { |
61 | 63 |
62 const int kModernManifestVersion = 1; | 64 const int kModernManifestVersion = 1; |
63 const int kPEMOutputColumns = 65; | 65 const int kPEMOutputColumns = 65; |
64 | 66 |
65 const char kOverrideExtentUrlPatternFormat[] = "chrome://%s/*"; | 67 const char kOverrideExtentUrlPatternFormat[] = "chrome://%s/*"; |
66 | 68 |
67 // KEY MARKERS | 69 // KEY MARKERS |
68 const char kKeyBeginHeaderMarker[] = "-----BEGIN"; | 70 const char kKeyBeginHeaderMarker[] = "-----BEGIN"; |
69 const char kKeyBeginFooterMarker[] = "-----END"; | 71 const char kKeyBeginFooterMarker[] = "-----END"; |
(...skipping 3484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3554 already_disabled(false), | 3556 already_disabled(false), |
3555 extension(extension) {} | 3557 extension(extension) {} |
3556 | 3558 |
3557 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 3559 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
3558 const Extension* extension, | 3560 const Extension* extension, |
3559 const ExtensionPermissionSet* permissions, | 3561 const ExtensionPermissionSet* permissions, |
3560 Reason reason) | 3562 Reason reason) |
3561 : reason(reason), | 3563 : reason(reason), |
3562 extension(extension), | 3564 extension(extension), |
3563 permissions(permissions) {} | 3565 permissions(permissions) {} |
| 3566 |
| 3567 } // namespace extensions |
OLD | NEW |