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

Unified Diff: net/websockets/websocket_throttle.cc

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/websockets/websocket_throttle.cc
===================================================================
--- net/websockets/websocket_throttle.cc (revision 31079)
+++ net/websockets/websocket_throttle.cc (working copy)
@@ -131,11 +131,14 @@
: callback_(callback) {
DCHECK(callback_);
}
- virtual ~CompletionCallbackRunner() {}
void Run() {
callback_->Run(OK);
}
private:
+ friend class base::RefCountedThreadSafe<CompletionCallbackRunner>;
+
+ virtual ~CompletionCallbackRunner() {}
+
CompletionCallback* callback_;
DISALLOW_COPY_AND_ASSIGN(CompletionCallbackRunner);
« net/url_request/url_request_ftp_job.h ('K') | « net/url_request/url_request_view_net_internals_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698