Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(220)

Unified Diff: net/url_request/url_request_job.h

Issue 368001: Second patch in making destructors of refcounted objects private. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/url_request/url_request_job.h
===================================================================
--- net/url_request/url_request_job.h (revision 31079)
+++ net/url_request/url_request_job.h (working copy)
@@ -41,7 +41,6 @@
static const size_t kSdchPacketHistogramCount = 5;
explicit URLRequestJob(URLRequest* request);
- virtual ~URLRequestJob();
// Returns the request that owns this job. THIS POINTER MAY BE NULL if the
// request was destroyed.
@@ -218,6 +217,9 @@
virtual void RecordPacketStats(StatisticSelector statistic) const;
protected:
+ friend class base::RefCountedThreadSafe<URLRequestJob>;
+ virtual ~URLRequestJob();
+
// Notifies the job that headers have been received.
void NotifyHeadersComplete();

Powered by Google App Engine
This is Rietveld 408576698