| 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 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS; | 81 URLPattern::SCHEME_HTTP | URLPattern::SCHEME_HTTPS; |
| 82 | 82 |
| 83 const int Extension::kValidBookmarkAppSchemes = URLPattern::SCHEME_HTTP | | 83 const int Extension::kValidBookmarkAppSchemes = URLPattern::SCHEME_HTTP | |
| 84 URLPattern::SCHEME_HTTPS | | 84 URLPattern::SCHEME_HTTPS | |
| 85 URLPattern::SCHEME_EXTENSION; | 85 URLPattern::SCHEME_EXTENSION; |
| 86 | 86 |
| 87 const int Extension::kValidHostPermissionSchemes = URLPattern::SCHEME_CHROMEUI | | 87 const int Extension::kValidHostPermissionSchemes = URLPattern::SCHEME_CHROMEUI | |
| 88 URLPattern::SCHEME_HTTP | | 88 URLPattern::SCHEME_HTTP | |
| 89 URLPattern::SCHEME_HTTPS | | 89 URLPattern::SCHEME_HTTPS | |
| 90 URLPattern::SCHEME_FILE | | 90 URLPattern::SCHEME_FILE | |
| 91 URLPattern::SCHEME_FTP; | 91 URLPattern::SCHEME_FTP | |
| 92 URLPattern::SCHEME_WS | |
| 93 URLPattern::SCHEME_WSS; |
| 92 | 94 |
| 93 // | 95 // |
| 94 // Extension | 96 // Extension |
| 95 // | 97 // |
| 96 | 98 |
| 97 // static | 99 // static |
| 98 scoped_refptr<Extension> Extension::Create(const base::FilePath& path, | 100 scoped_refptr<Extension> Extension::Create(const base::FilePath& path, |
| 99 Manifest::Location location, | 101 Manifest::Location location, |
| 100 const base::DictionaryValue& value, | 102 const base::DictionaryValue& value, |
| 101 int flags, | 103 int flags, |
| (...skipping 674 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 776 : reason(reason), | 778 : reason(reason), |
| 777 extension(extension) {} | 779 extension(extension) {} |
| 778 | 780 |
| 779 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( | 781 UpdatedExtensionPermissionsInfo::UpdatedExtensionPermissionsInfo( |
| 780 const Extension* extension, | 782 const Extension* extension, |
| 781 const PermissionSet& permissions, | 783 const PermissionSet& permissions, |
| 782 Reason reason) | 784 Reason reason) |
| 783 : reason(reason), extension(extension), permissions(permissions) {} | 785 : reason(reason), extension(extension), permissions(permissions) {} |
| 784 | 786 |
| 785 } // namespace extensions | 787 } // namespace extensions |
| OLD | NEW |