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

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

Issue 1495403002: Observe adding external extensions via windows registry. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: sync @tott Created 4 years, 11 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 void AddExtension(const extensions::Extension* extension) override; 221 void AddExtension(const extensions::Extension* extension) override;
222 void AddComponentExtension(const extensions::Extension* extension) override; 222 void AddComponentExtension(const extensions::Extension* extension) override;
223 const extensions::Extension* GetPendingExtensionUpdate( 223 const extensions::Extension* GetPendingExtensionUpdate(
224 const std::string& extension_id) const override; 224 const std::string& extension_id) const override;
225 void FinishDelayedInstallation(const std::string& extension_id) override; 225 void FinishDelayedInstallation(const std::string& extension_id) override;
226 void CheckManagementPolicy() override; 226 void CheckManagementPolicy() override;
227 void CheckForUpdatesSoon() override; 227 void CheckForUpdatesSoon() override;
228 bool is_ready() override; 228 bool is_ready() override;
229 base::SequencedTaskRunner* GetFileTaskRunner() override; 229 base::SequencedTaskRunner* GetFileTaskRunner() override;
230 230
231 // ExternalProvider::Visitor implementation. 231 // ExternalProvider::VisitorInterface implementation.
232 // Exposed for testing. 232 // Exposed for testing.
233 bool OnExternalExtensionFileFound(const std::string& id, 233 bool OnExternalExtensionFileFound(
234 const base::Version* version, 234 const extensions::ExternalInstallInfoFile& info) override;
235 const base::FilePath& path,
236 extensions::Manifest::Location location,
237 int creation_flags,
238 bool mark_acknowledged,
239 bool install_immediately) override;
240 bool OnExternalExtensionUpdateUrlFound( 235 bool OnExternalExtensionUpdateUrlFound(
241 const std::string& id, 236 const extensions::ExternalInstallInfoUpdateUrl& info,
242 const std::string& install_parameter, 237 bool is_initial_load) override;
243 const GURL& update_url,
244 extensions::Manifest::Location location,
245 int creation_flags,
246 bool mark_acknowledged) override;
247 void OnExternalProviderReady( 238 void OnExternalProviderReady(
248 const extensions::ExternalProviderInterface* provider) override; 239 const extensions::ExternalProviderInterface* provider) override;
240 void OnExternalProviderUpdateComplete(
241 const extensions::ExternalProviderInterface* provider,
242 const ScopedVector<extensions::ExternalInstallInfoUpdateUrl>&
243 external_update_url_extensions,
244 const ScopedVector<extensions::ExternalInstallInfoFile>&
245 external_file_extensions,
246 const std::set<std::string>& removed_extensions) override;
249 247
250 // ExtensionManagement::Observer implementation: 248 // ExtensionManagement::Observer implementation:
251 void OnExtensionManagementSettingsChanged() override; 249 void OnExtensionManagementSettingsChanged() override;
252 250
253 // Initialize and start all installed extensions. 251 // Initialize and start all installed extensions.
254 void Init(); 252 void Init();
255 253
256 // Called when the associated Profile is going to be destroyed. 254 // Called when the associated Profile is going to be destroyed.
257 void Shutdown(); 255 void Shutdown();
258 256
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 GreylistUnknownDontChange); 751 GreylistUnknownDontChange);
754 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 752 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
755 ManagementPolicyProhibitsEnableOnInstalled); 753 ManagementPolicyProhibitsEnableOnInstalled);
756 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 754 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
757 BlockAndUnblockBlacklistedExtension); 755 BlockAndUnblockBlacklistedExtension);
758 756
759 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 757 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
760 }; 758 };
761 759
762 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 760 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698