| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS; | 84 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS; |
| 85 | 85 |
| 86 const int Extension::kValidBookmarkAppSchemes = URLPattern::SCHEME_HTTP | | 86 const int Extension::kValidBookmarkAppSchemes = URLPattern::SCHEME_HTTP | |
| 87 URLPattern::SCHEME_HTTPS | | 87 URLPattern::SCHEME_HTTPS | |
| 88 URLPattern::SCHEME_EXTENSION; | 88 URLPattern::SCHEME_EXTENSION; |
| 89 | 89 |
| 90 const int Extension::kValidHostPermissionSchemes = URLPattern::SCHEME_CHROMEUI | | 90 const int Extension::kValidHostPermissionSchemes = URLPattern::SCHEME_CHROMEUI | |
| 91 URLPattern::SCHEME_HTTP | | 91 URLPattern::SCHEME_HTTP | |
| 92 URLPattern::SCHEME_HTTPS | | 92 URLPattern::SCHEME_HTTPS | |
| 93 URLPattern::SCHEME_FILE | | 93 URLPattern::SCHEME_FILE | |
| 94 URLPattern::SCHEME_FTP; | 94 URLPattern::SCHEME_FTP | |
| 95 URLPattern::SCHEME_WS | |
| 96 URLPattern::SCHEME_WSS; |
| 95 | 97 |
| 96 // | 98 // |
| 97 // Extension | 99 // Extension |
| 98 // | 100 // |
| 99 | 101 |
| 100 // static | 102 // static |
| 101 scoped_refptr<Extension> Extension::Create(const base::FilePath& path, | 103 scoped_refptr<Extension> Extension::Create(const base::FilePath& path, |
| 102 Manifest::Location location, | 104 Manifest::Location location, |
| 103 const base::DictionaryValue& value, | 105 const base::DictionaryValue& value, |
| 104 int flags, | 106 int flags, |
| (...skipping 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 : reason(reason), | 803 : reason(reason), |
| 802 extension(extension) {} | 804 extension(extension) {} |
| 803 | 805 |
| 804 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 806 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
| 805 const Extension* extension, | 807 const Extension* extension, |
| 806 const PermissionSet& permissions, | 808 const PermissionSet& permissions, |
| 807 Reason reason) | 809 Reason reason) |
| 808 : reason(reason), extension(extension), permissions(permissions) {} | 810 : reason(reason), extension(extension), permissions(permissions) {} |
| 809 | 811 |
| 810 } // namespace extensions | 812 } // namespace extensions |
| OLD | NEW |