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

Unified Diff: net/disk_cache/file_posix.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/disk_cache/file_posix.cc
===================================================================
--- net/disk_cache/file_posix.cc (revision 31079)
+++ net/disk_cache/file_posix.cc (working copy)
@@ -35,8 +35,6 @@
buf_len_(buf_len), offset_(offset), controller_(controller),
bytes_(0) {}
- ~BackgroundIO() {}
-
// Read and Write are the operations that can be performed asynchronously.
// The actual parameters for the operation are setup in the constructor of
// the object, with the exception of |delete_buffer|, that allows a write
@@ -75,6 +73,9 @@
}
private:
+ friend class base::RefCountedThreadSafe<BackgroundIO>;
+ ~BackgroundIO() {}
+
// An event to signal when the operation completes, and the user callback that
// has to be invoked. These members are accessed directly by the controller.
base::WaitableEvent io_completed_;

Powered by Google App Engine
This is Rietveld 408576698