summaryrefslogtreecommitdiffstats
path: root/chrome/browser/web_resource
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-02 05:59:37 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-02 05:59:37 +0000
commit6fad26338ed6119903826156f307e20fe6657c31 (patch)
tree5c6baed35fce907a0cea47ed6091c941db8ebfd1 /chrome/browser/web_resource
parentf75c8f13b967b01babc9454506e9d2ed00519e39 (diff)
downloadchromium_src-6fad26338ed6119903826156f307e20fe6657c31.zip
chromium_src-6fad26338ed6119903826156f307e20fe6657c31.tar.gz
chromium_src-6fad26338ed6119903826156f307e20fe6657c31.tar.bz2
Third patch in getting rid of caching MessageLoop pointers and always using ChromeThread instead.
BUG=25354 Review URL: http://codereview.chromium.org/342068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@30687 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_resource')
-rw-r--r--chrome/browser/web_resource/web_resource_service.cc4
-rw-r--r--chrome/browser/web_resource/web_resource_service.h6
2 files changed, 2 insertions, 8 deletions
diff --git a/chrome/browser/web_resource/web_resource_service.cc b/chrome/browser/web_resource/web_resource_service.cc
index 4a6683c..80805f2 100644
--- a/chrome/browser/web_resource/web_resource_service.cc
+++ b/chrome/browser/web_resource/web_resource_service.cc
@@ -196,11 +196,9 @@ const wchar_t* WebResourceService::kDefaultResourceServer =
const char* WebResourceService::kResourceDirectoryName =
"Resources";
-WebResourceService::WebResourceService(Profile* profile,
- MessageLoop* backend_loop) :
+WebResourceService::WebResourceService(Profile* profile) :
prefs_(profile->GetPrefs()),
web_resource_dir_(profile->GetPath().AppendASCII(kResourceDirectoryName)),
- backend_loop_(backend_loop),
in_fetch_(false) {
Init();
}
diff --git a/chrome/browser/web_resource/web_resource_service.h b/chrome/browser/web_resource/web_resource_service.h
index 41f75f1..14c04cf 100644
--- a/chrome/browser/web_resource/web_resource_service.h
+++ b/chrome/browser/web_resource/web_resource_service.h
@@ -16,8 +16,7 @@ class Profile;
class WebResourceService
: public UtilityProcessHost::Client {
public:
- WebResourceService(Profile* profile,
- MessageLoop* backend_loop);
+ WebResourceService(Profile* profile);
~WebResourceService();
// Sleep until cache needs to be updated, but always for at least 5 seconds
@@ -61,9 +60,6 @@ class WebResourceService
// Server from which we are currently pulling web resource data.
std::wstring web_resource_server_;
- // Whenever we update resource cache, schedule another task.
- MessageLoop* backend_loop_;
-
WebResourceFetcher* web_resource_fetcher_;
ResourceDispatcherHost* resource_dispatcher_host_;