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-07 01:06:28 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-11-07 01:06:28 +0000
commite60b6496879d9ab8a58abf998bfbd02aab834aba (patch)
treecd4068f309018fa553c5e1e282c48e1be02f02d7 /chrome/browser/web_resource
parenta45a84fa3d8005703a3cdbd204b25d40297599da (diff)
downloadchromium_src-e60b6496879d9ab8a58abf998bfbd02aab834aba.zip
chromium_src-e60b6496879d9ab8a58abf998bfbd02aab834aba.tar.gz
chromium_src-e60b6496879d9ab8a58abf998bfbd02aab834aba.tar.bz2
Tenth patch in making destructors of refcounted objects private.
BUG=26749 Review URL: http://codereview.chromium.org/376007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@31348 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.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/chrome/browser/web_resource/web_resource_service.cc b/chrome/browser/web_resource/web_resource_service.cc
index 80805f2..a3e4ae4 100644
--- a/chrome/browser/web_resource/web_resource_service.cc
+++ b/chrome/browser/web_resource/web_resource_service.cc
@@ -87,7 +87,7 @@ class WebResourceService::WebResourceFetcher
scoped_ptr<URLFetcher> url_fetcher_;
// Our owner and creator.
- scoped_ptr<WebResourceService> web_resource_service_;
+ scoped_refptr<WebResourceService> web_resource_service_;
};
// This class coordinates a web resource unpack and parse task which is run in
@@ -136,6 +136,8 @@ class WebResourceService::UnpackerClient
}
private:
+ ~UnpackerClient() {}
+
// UtilityProcessHost::Client
virtual void OnProcessCrashed() {
if (got_response_)
diff --git a/chrome/browser/web_resource/web_resource_service.h b/chrome/browser/web_resource/web_resource_service.h
index 14c04cf..8a0289e 100644
--- a/chrome/browser/web_resource/web_resource_service.h
+++ b/chrome/browser/web_resource/web_resource_service.h
@@ -17,7 +17,6 @@ class WebResourceService
: public UtilityProcessHost::Client {
public:
WebResourceService(Profile* profile);
- ~WebResourceService();
// Sleep until cache needs to be updated, but always for at least 5 seconds
// so we don't interfere with startup. Then begin updating resources.
@@ -43,6 +42,8 @@ class WebResourceService
class UnpackerClient;
+ ~WebResourceService();
+
void Init();
// Set in_fetch_ to false, clean up temp directories (in the future).