| 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 "extensions/common/extension.h" | 5 #include "extensions/common/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/files/file_path.h" | 10 #include "base/files/file_path.h" |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 | 74 |
| 75 const char Extension::kMimeType[] = "application/x-chrome-extension"; | 75 const char Extension::kMimeType[] = "application/x-chrome-extension"; |
| 76 | 76 |
| 77 const int Extension::kValidWebExtentSchemes = | 77 const int Extension::kValidWebExtentSchemes = |
| 78 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS; | 78 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS; |
| 79 | 79 |
| 80 const int Extension::kValidHostPermissionSchemes = URLPattern::SCHEME_CHROMEUI | | 80 const int Extension::kValidHostPermissionSchemes = URLPattern::SCHEME_CHROMEUI | |
| 81 URLPattern::SCHEME_HTTP | | 81 URLPattern::SCHEME_HTTP | |
| 82 URLPattern::SCHEME_HTTPS | | 82 URLPattern::SCHEME_HTTPS | |
| 83 URLPattern::SCHEME_FILE | | 83 URLPattern::SCHEME_FILE | |
| 84 URLPattern::SCHEME_FTP; | 84 URLPattern::SCHEME_FTP | |
| 85 URLPattern::SCHEME_ABOUT; |
| 85 | 86 |
| 86 // | 87 // |
| 87 // Extension | 88 // Extension |
| 88 // | 89 // |
| 89 | 90 |
| 90 // static | 91 // static |
| 91 scoped_refptr<Extension> Extension::Create(const base::FilePath& path, | 92 scoped_refptr<Extension> Extension::Create(const base::FilePath& path, |
| 92 Manifest::Location location, | 93 Manifest::Location location, |
| 93 const base::DictionaryValue& value, | 94 const base::DictionaryValue& value, |
| 94 int flags, | 95 int flags, |
| (...skipping 691 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 786 | 787 |
| 787 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 788 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
| 788 const Extension* extension, | 789 const Extension* extension, |
| 789 const PermissionSet* permissions, | 790 const PermissionSet* permissions, |
| 790 Reason reason) | 791 Reason reason) |
| 791 : reason(reason), | 792 : reason(reason), |
| 792 extension(extension), | 793 extension(extension), |
| 793 permissions(permissions) {} | 794 permissions(permissions) {} |
| 794 | 795 |
| 795 } // namespace extensions | 796 } // namespace extensions |
| OLD | NEW |