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

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

Issue 1099383002: Change ScopedPtrHashMap's 2nd template parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 5 years, 7 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 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 scoped_refptr<const PermissionSet> perms) const; 122 scoped_refptr<const PermissionSet> perms) const;
123 123
124 // Returns true if |extension| meets the minimum required version set for it. 124 // Returns true if |extension| meets the minimum required version set for it.
125 // If there is no such requirement set for it, returns true as well. 125 // If there is no such requirement set for it, returns true as well.
126 // If false is returned and |required_version| is not null, the minimum 126 // If false is returned and |required_version| is not null, the minimum
127 // required version is returned. 127 // required version is returned.
128 bool CheckMinimumVersion(const Extension* extension, 128 bool CheckMinimumVersion(const Extension* extension,
129 std::string* required_version) const; 129 std::string* required_version) const;
130 130
131 private: 131 private:
132 typedef base::ScopedPtrHashMap<ExtensionId, internal::IndividualSettings> 132 typedef base::ScopedPtrHashMap<ExtensionId,
133 scoped_ptr<internal::IndividualSettings>>
133 SettingsIdMap; 134 SettingsIdMap;
134 typedef base::ScopedPtrHashMap<std::string, internal::IndividualSettings> 135 typedef base::ScopedPtrHashMap<std::string,
136 scoped_ptr<internal::IndividualSettings>>
135 SettingsUpdateUrlMap; 137 SettingsUpdateUrlMap;
136 friend class ExtensionManagementServiceTest; 138 friend class ExtensionManagementServiceTest;
137 139
138 // Load all extension management preferences from |pref_service|, and 140 // Load all extension management preferences from |pref_service|, and
139 // refresh the settings. 141 // refresh the settings.
140 void Refresh(); 142 void Refresh();
141 143
142 // Load preference with name |pref_name| and expected type |expected_type|. 144 // Load preference with name |pref_name| and expected type |expected_type|.
143 // If |force_managed| is true, only loading from the managed preference store 145 // If |force_managed| is true, only loading from the managed preference store
144 // is allowed. Returns NULL if the preference is not present, not allowed to 146 // is allowed. Returns NULL if the preference is not present, not allowed to
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 content::BrowserContext* context) const override; 210 content::BrowserContext* context) const override;
209 void RegisterProfilePrefs( 211 void RegisterProfilePrefs(
210 user_prefs::PrefRegistrySyncable* registry) override; 212 user_prefs::PrefRegistrySyncable* registry) override;
211 213
212 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementFactory); 214 DISALLOW_COPY_AND_ASSIGN(ExtensionManagementFactory);
213 }; 215 };
214 216
215 } // namespace extensions 217 } // namespace extensions
216 218
217 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_ 219 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_MANAGEMENT_H_
OLDNEW
« no previous file with comments | « chrome/browser/devtools/devtools_network_controller.h ('k') | chrome/browser/media/media_stream_capture_indicator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698