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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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 | « chrome/common/extensions/extension.h ('k') | chrome/common/extensions/extension_file_util.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 (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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 52
53 namespace keys = extension_manifest_keys; 53 namespace keys = extension_manifest_keys;
54 namespace values = extension_manifest_values; 54 namespace values = extension_manifest_values;
55 namespace errors = extension_manifest_errors; 55 namespace errors = extension_manifest_errors;
56 namespace info_keys = extension_info_keys; 56 namespace info_keys = extension_info_keys;
57 namespace switch_utils = extensions::switch_utils; 57 namespace switch_utils = extensions::switch_utils;
58 58
59 using extensions::csp_validator::ContentSecurityPolicyIsLegal; 59 using extensions::csp_validator::ContentSecurityPolicyIsLegal;
60 using extensions::csp_validator::ContentSecurityPolicyIsSecure; 60 using extensions::csp_validator::ContentSecurityPolicyIsSecure;
61 61
62 namespace extensions {
63
62 namespace { 64 namespace {
63 65
64 const int kModernManifestVersion = 1; 66 const int kModernManifestVersion = 1;
65 const int kPEMOutputColumns = 65; 67 const int kPEMOutputColumns = 65;
66 68
67 const char kOverrideExtentUrlPatternFormat[] = "chrome://%s/*"; 69 const char kOverrideExtentUrlPatternFormat[] = "chrome://%s/*";
68 70
69 // KEY MARKERS 71 // KEY MARKERS
70 const char kKeyBeginHeaderMarker[] = "-----BEGIN"; 72 const char kKeyBeginHeaderMarker[] = "-----BEGIN";
71 const char kKeyBeginFooterMarker[] = "-----END"; 73 const char kKeyBeginFooterMarker[] = "-----END";
(...skipping 3481 matching lines...) Expand 10 before | Expand all | Expand 10 after
3553 already_disabled(false), 3555 already_disabled(false),
3554 extension(extension) {} 3556 extension(extension) {}
3555 3557
3556 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( 3558 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo(
3557 const Extension* extension, 3559 const Extension* extension,
3558 const ExtensionPermissionSet* permissions, 3560 const ExtensionPermissionSet* permissions,
3559 Reason reason) 3561 Reason reason)
3560 : reason(reason), 3562 : reason(reason),
3561 extension(extension), 3563 extension(extension),
3562 permissions(permissions) {} 3564 permissions(permissions) {}
3565
3566 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.h ('k') | chrome/common/extensions/extension_file_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698