diff options
author | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-31 08:41:40 +0000 |
---|---|---|
committer | yoz@chromium.org <yoz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-31 08:41:40 +0000 |
commit | 1d5e58b96403aab76b4ae9f957eac7fac9c54182 (patch) | |
tree | 531272d9e76d671eee55318d5cd75da120e8a277 /chrome/browser/extensions/external_provider_impl.h | |
parent | 13fb3ec6e5f257683426c353f70523b1ad2e24f7 (diff) | |
download | chromium_src-1d5e58b96403aab76b4ae9f957eac7fac9c54182.zip chromium_src-1d5e58b96403aab76b4ae9f957eac7fac9c54182.tar.gz chromium_src-1d5e58b96403aab76b4ae9f957eac7fac9c54182.tar.bz2 |
Move Extension Location and Type enums to Manifest, and move InstallWarning to its own file.
Reverses the dependency between Extension and Manifest.
Part 1 of moving Manifest to top-level extensions.
BUG=162530
TBR=ben@chromium.org
Review URL: https://chromiumcodereview.appspot.com/12093036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@179828 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/external_provider_impl.h')
-rw-r--r-- | chrome/browser/extensions/external_provider_impl.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/chrome/browser/extensions/external_provider_impl.h b/chrome/browser/extensions/external_provider_impl.h index e75cbd1..32d3763 100644 --- a/chrome/browser/extensions/external_provider_impl.h +++ b/chrome/browser/extensions/external_provider_impl.h @@ -11,6 +11,7 @@ #include "base/memory/ref_counted.h" #include "chrome/browser/extensions/external_loader.h" +#include "chrome/common/extensions/manifest.h" class Profile; class Version; @@ -20,7 +21,6 @@ class DictionaryValue; } namespace extensions { -class Extension; class ExternalLoader; // A specialization of the ExternalProvider that uses an instance of @@ -35,11 +35,11 @@ class ExternalProviderImpl : public ExternalProviderInterface { // |crx_location|: extensions originating from crx files // |download_location|: extensions originating from update URLs // If either of the origins is not supported by this provider, then it should - // be initialized as Extensions::INVALID. + // be initialized as Manifest::INVALID_LOCATION. ExternalProviderImpl(VisitorInterface* service, ExternalLoader* loader, - Extension::Location crx_location, - Extension::Location download_location, + Manifest::Location crx_location, + Manifest::Location download_location, int creation_flags); virtual ~ExternalProviderImpl(); @@ -59,7 +59,7 @@ class ExternalProviderImpl : public ExternalProviderInterface { virtual void VisitRegisteredExtension() OVERRIDE; virtual bool HasExtension(const std::string& id) const OVERRIDE; virtual bool GetExtensionDetails(const std::string& id, - Extension::Location* location, + Manifest::Location* location, scoped_ptr<Version>* version) const OVERRIDE; virtual bool IsReady() const OVERRIDE; @@ -78,11 +78,11 @@ class ExternalProviderImpl : public ExternalProviderInterface { private: // Location for external extensions that are provided by this provider from // local crx files. - const Extension::Location crx_location_; + const Manifest::Location crx_location_; // Location for external extensions that are provided by this provider from // update URLs. - const Extension::Location download_location_; + const Manifest::Location download_location_; // Weak pointer to the object that consumes the external extensions. // This is zeroed out by: ServiceShutdown() @@ -100,7 +100,7 @@ class ExternalProviderImpl : public ExternalProviderInterface { scoped_refptr<ExternalLoader> loader_; // Creation flags to use for the extension. These flags will be used - // when calling Extenion::Create() by the crx installer. + // when calling Extension::Create() by the crx installer. int creation_flags_; // Whether loaded extensions should be automatically acknowledged, so that |