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

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: guard updater_->CheckNow() call, rework Provider->ExtensionService interaction 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 extensions::ExternalProviderInterface::FileExtensionInfo* 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 extensions::ExternalProviderInterface::UpdateUrlExtensionInfo* 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(
lazyboy 2016/01/22 07:52:41 This function now includes all the info the provid
asargent_no_longer_on_chrome 2016/01/25 18:50:52 Acknowledged.
241 const extensions::ExternalProviderInterface* provider,
242 const ScopedVector<
243 extensions::ExternalProviderInterface::UpdateUrlExtensionInfo>&
244 external_update_url_extensions,
245 const ScopedVector<
246 extensions::ExternalProviderInterface::FileExtensionInfo>&
247 external_file_extensions,
248 const std::set<std::string>& removed_extensions) override;
249 249
250 // ExtensionManagement::Observer implementation: 250 // ExtensionManagement::Observer implementation:
251 void OnExtensionManagementSettingsChanged() override; 251 void OnExtensionManagementSettingsChanged() override;
252 252
253 // Initialize and start all installed extensions. 253 // Initialize and start all installed extensions.
254 void Init(); 254 void Init();
255 255
256 // Called when the associated Profile is going to be destroyed. 256 // Called when the associated Profile is going to be destroyed.
257 void Shutdown(); 257 void Shutdown();
258 258
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
753 GreylistUnknownDontChange); 753 GreylistUnknownDontChange);
754 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 754 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
755 ManagementPolicyProhibitsEnableOnInstalled); 755 ManagementPolicyProhibitsEnableOnInstalled);
756 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 756 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
757 BlockAndUnblockBlacklistedExtension); 757 BlockAndUnblockBlacklistedExtension);
758 758
759 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 759 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
760 }; 760 };
761 761
762 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 762 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | chrome/browser/extensions/extension_service.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698