diff options
Diffstat (limited to 'chrome/browser/extensions/external_extension_provider.h')
-rw-r--r-- | chrome/browser/extensions/external_extension_provider.h | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/chrome/browser/extensions/external_extension_provider.h b/chrome/browser/extensions/external_extension_provider.h index 2a0b967..eddea62 100644 --- a/chrome/browser/extensions/external_extension_provider.h +++ b/chrome/browser/extensions/external_extension_provider.h @@ -46,16 +46,11 @@ class ExternalExtensionProvider { virtual void VisitRegisteredExtension( Visitor* visitor, const std::set<std::string>& ids_to_ignore) const = 0; - // Test if this provider has an extension with id |id| registered. - virtual bool HasExtension(const std::string& id) const = 0; - - // Gets details of an extension by its id. Output params will be set only - // if they are not NULL. If an output parameter is not specified by the - // provider type, it will not be changed. - // This function is no longer used outside unit tests. - virtual bool GetExtensionDetails(const std::string& id, - Extension::Location* location, - scoped_ptr<Version>* version) const = 0; + // Gets the version of extension with |id| and its |location|. |location| can + // be NULL. The caller is responsible for cleaning up the Version object + // returned. This function returns NULL if the extension is not found. + virtual Version* RegisteredVersion(const std::string& id, + Extension::Location* location) const = 0; }; #endif // CHROME_BROWSER_EXTENSIONS_EXTERNAL_EXTENSION_PROVIDER_H_ |