| Index: chrome/browser/extensions/unpacked_installer.h
|
| diff --git a/chrome/browser/extensions/unpacked_installer.h b/chrome/browser/extensions/unpacked_installer.h
|
| index 2cc3ec420545a708b23da80af55707d98b108377..4937c5a1f9051940164e7f20b9e0eebb0e75d9d1 100644
|
| --- a/chrome/browser/extensions/unpacked_installer.h
|
| +++ b/chrome/browser/extensions/unpacked_installer.h
|
| @@ -6,9 +6,11 @@
|
| #define CHROME_BROWSER_EXTENSIONS_UNPACKED_INSTALLER_H_
|
|
|
| #include <string>
|
| +#include <vector>
|
|
|
| #include "base/file_path.h"
|
| #include "base/memory/ref_counted.h"
|
| +#include "base/memory/scoped_ptr.h"
|
| #include "base/memory/weak_ptr.h"
|
|
|
| class ExtensionService;
|
| @@ -16,6 +18,7 @@ class ExtensionService;
|
| namespace extensions {
|
|
|
| class Extension;
|
| +class RequirementsChecker;
|
|
|
| // Installs and loads an unpacked extension.
|
| // TODO(erikkay): It might be useful to be able to load a packed extension
|
| @@ -47,6 +50,12 @@ class UnpackedInstaller
|
| explicit UnpackedInstaller(ExtensionService* extension_service);
|
| virtual ~UnpackedInstaller();
|
|
|
| + // Must be called from the UI thread.
|
| + void CheckRequirements();
|
| +
|
| + // Callback from RequirementsChecker.
|
| + void OnRequirementsChecked(std::vector<std::string> requirement_errors);
|
| +
|
| // Verifies if loading unpacked extensions is allowed.
|
| bool IsLoadingUnpackedAllowed() const;
|
|
|
| @@ -65,7 +74,7 @@ class UnpackedInstaller
|
| void ReportExtensionLoadError(const std::string& error);
|
|
|
| // Called when an unpacked extension has been loaded and installed.
|
| - void OnLoaded(const scoped_refptr<const Extension>& extension);
|
| + void OnLoaded();
|
|
|
| base::WeakPtr<ExtensionService> service_weak_;
|
|
|
| @@ -77,6 +86,10 @@ class UnpackedInstaller
|
| // loading.
|
| bool prompt_for_plugins_;
|
|
|
| + scoped_ptr<RequirementsChecker> requirements_checker_;
|
| +
|
| + scoped_refptr<const Extension> extension_;
|
| +
|
| DISALLOW_COPY_AND_ASSIGN(UnpackedInstaller);
|
| };
|
|
|
|
|