summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/extension_updater.h
diff options
context:
space:
mode:
authorcmp@chromium.org <cmp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 13:11:28 +0000
committercmp@chromium.org <cmp@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-06 13:11:28 +0000
commitfc7641553e87f708788ef0c1e944d971f86a16bb (patch)
treed25ad7c821e30dafc5887b740e5e7dffaea3daa6 /chrome/browser/extensions/extension_updater.h
parent40bbe59d2dd822e8448047f25c0349bb5c44d938 (diff)
downloadchromium_src-fc7641553e87f708788ef0c1e944d971f86a16bb.zip
chromium_src-fc7641553e87f708788ef0c1e944d971f86a16bb.tar.gz
chromium_src-fc7641553e87f708788ef0c1e944d971f86a16bb.tar.bz2
Revert 80539 - Refactor ExtensionService/ExtensionServiceInterface to be more testableIn particular:- Add various status accessors to ExtensionServiceInterface (e.g., IsExtensionEnabled())- Convert IsIncognitoEnabled() to take an ID instead of an Extension*.- Add CheckForUpdates() to ExtensionServiceInterface.- Remove various unneeded accessors from ExtensionServiceInterface.Rewrite some sync utility functions to take advantage of the newinterface (although it will be rewritten more in a future CL).BUG=77995TEST=Review URL: http://codereview.chromium.org/6720042
TBR=akalin@chromium.org Review URL: http://codereview.chromium.org/6804010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@80613 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/extensions/extension_updater.h')
-rw-r--r--chrome/browser/extensions/extension_updater.h12
1 files changed, 2 insertions, 10 deletions
diff --git a/chrome/browser/extensions/extension_updater.h b/chrome/browser/extensions/extension_updater.h
index e5be521..328762b 100644
--- a/chrome/browser/extensions/extension_updater.h
+++ b/chrome/browser/extensions/extension_updater.h
@@ -25,11 +25,9 @@
#include "googleurl/src/gurl.h"
class Extension;
-class ExtensionPrefs;
class ExtensionUpdaterTest;
class ExtensionUpdaterFileHandler;
class PrefService;
-class Profile;
// To save on server resources we can request updates for multiple extensions
// in one manifest check. This class helps us keep track of the id's for a
@@ -104,8 +102,7 @@ class ManifestFetchData {
// extensions and pending extensions.
class ManifestFetchesBuilder {
public:
- ManifestFetchesBuilder(ExtensionServiceInterface* service,
- ExtensionPrefs* prefs);
+ explicit ManifestFetchesBuilder(ExtensionServiceInterface* service);
~ManifestFetchesBuilder();
void AddExtension(const Extension& extension);
@@ -141,8 +138,7 @@ class ManifestFetchesBuilder {
Extension::Type extension_type,
GURL update_url,
const std::string& update_url_data);
- ExtensionServiceInterface* const service_;
- ExtensionPrefs* const prefs_;
+ ExtensionServiceInterface* service_;
// List of data on fetches we're going to do. We limit the number of
// extensions grouped together in one batch to avoid running into the limits
@@ -171,9 +167,7 @@ class ExtensionUpdater
// extensions and installing updated ones. The |frequency_seconds| parameter
// controls how often update checks are scheduled.
ExtensionUpdater(ExtensionServiceInterface* service,
- ExtensionPrefs* extension_prefs,
PrefService* prefs,
- Profile* profile,
int frequency_seconds);
// Starts the updater running. Should be called at most once.
@@ -328,9 +322,7 @@ class ExtensionUpdater
base::OneShotTimer<ExtensionUpdater> timer_;
int frequency_seconds_;
- ExtensionPrefs* extension_prefs_;
PrefService* prefs_;
- Profile* profile_;
scoped_refptr<ExtensionUpdaterFileHandler> file_handler_;
bool blacklist_checks_enabled_;