| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_INTERNAL_H_ | 4 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_INTERNAL_H_ |
| 5 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_INTERNAL_H_ | 5 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_INTERNAL_H_ |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 // necessary), but conflicting permissions will be dropped. This setting will | 84 // necessary), but conflicting permissions will be dropped. This setting will |
| 85 // merge from the default settings, and unspecified settings will take value | 85 // merge from the default settings, and unspecified settings will take value |
| 86 // from default settings. | 86 // from default settings. |
| 87 // In case this setting is specified in both per-extensions and per-update-url | 87 // In case this setting is specified in both per-extensions and per-update-url |
| 88 // settings, both settings will be enforced. | 88 // settings, both settings will be enforced. |
| 89 APIPermissionSet blocked_permissions; | 89 APIPermissionSet blocked_permissions; |
| 90 | 90 |
| 91 // Minimum version required for an extensions, applies to per-extension | 91 // Minimum version required for an extensions, applies to per-extension |
| 92 // settings only. Extension (with specified extension ID) with version older | 92 // settings only. Extension (with specified extension ID) with version older |
| 93 // than the specified minimum version will be disabled. | 93 // than the specified minimum version will be disabled. |
| 94 scoped_ptr<base::Version> minimum_version_required; | 94 std::unique_ptr<base::Version> minimum_version_required; |
| 95 | 95 |
| 96 private: | 96 private: |
| 97 DISALLOW_COPY_AND_ASSIGN(IndividualSettings); | 97 DISALLOW_COPY_AND_ASSIGN(IndividualSettings); |
| 98 }; | 98 }; |
| 99 | 99 |
| 100 // Global extension management settings, applicable to all extensions. | 100 // Global extension management settings, applicable to all extensions. |
| 101 struct GlobalSettings { | 101 struct GlobalSettings { |
| 102 GlobalSettings(); | 102 GlobalSettings(); |
| 103 ~GlobalSettings(); | 103 ~GlobalSettings(); |
| 104 | 104 |
| (...skipping 11 matching lines...) Expand all Loading... |
| 116 | 116 |
| 117 private: | 117 private: |
| 118 DISALLOW_COPY_AND_ASSIGN(GlobalSettings); | 118 DISALLOW_COPY_AND_ASSIGN(GlobalSettings); |
| 119 }; | 119 }; |
| 120 | 120 |
| 121 } // namespace internal | 121 } // namespace internal |
| 122 | 122 |
| 123 } // namespace extensions | 123 } // namespace extensions |
| 124 | 124 |
| 125 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_INTERNAL_H_ | 125 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_INTERNAL_H_ |
| OLD | NEW |