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

Side by Side Diff: chrome/browser/extensions/extension_management_internal.h

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 years, 8 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
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_management.cc ('k') | chrome/browser/extensions/extension_management_internal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698