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

Unified Diff: chrome/browser/extensions/external_provider_impl.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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/external_provider_impl.h
diff --git a/chrome/browser/extensions/external_provider_impl.h b/chrome/browser/extensions/external_provider_impl.h
index 2d816bc04e1c64c000b12f4f451e1a8c6e0fc1f1..4cc4985d3140117a459e82963fcdbfd1f8b23a62 100644
--- a/chrome/browser/extensions/external_provider_impl.h
+++ b/chrome/browser/extensions/external_provider_impl.h
@@ -10,6 +10,7 @@
#include "base/macros.h"
#include "base/memory/ref_counted.h"
+#include "base/memory/scoped_vector.h"
#include "chrome/browser/extensions/external_loader.h"
#include "extensions/browser/external_provider_interface.h"
#include "extensions/common/manifest.h"
@@ -55,6 +56,10 @@ class ExternalProviderImpl : public ExternalProviderInterface {
// owned ExternalLoader instance.
virtual void SetPrefs(base::DictionaryValue* prefs);
+ // Updates the underlying prefs and notifies provider.
+ // Only to be called by the owned ExternalLoader instance.
+ void UpdatePrefs(base::DictionaryValue* prefs);
+
// ExternalProvider implementation:
void ServiceShutdown() override;
void VisitRegisteredExtension() override;
@@ -96,6 +101,12 @@ class ExternalProviderImpl : public ExternalProviderInterface {
const std::string& extension_id,
std::set<std::string>* unsupported_extensions);
+ // Retrieves the extensions that were found in this provider.
+ void RetrieveExtensionsFromPrefs(
+ ScopedVector<ExternalInstallInfoUpdateUrl>*
+ external_update_url_extensions,
+ ScopedVector<ExternalInstallInfoFile>* external_file_extensions);
+
// Location for external extensions that are provided by this provider from
// local crx files.
const Manifest::Location crx_location_;
« no previous file with comments | « chrome/browser/extensions/external_policy_loader_unittest.cc ('k') | chrome/browser/extensions/external_provider_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698