diff options
author | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-29 00:11:41 +0000 |
---|---|---|
committer | rsleevi@chromium.org <rsleevi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-29 00:11:41 +0000 |
commit | e0845d5f582add16baf03fcd32ef6f9001b3e347 (patch) | |
tree | 629981a80136ed3f3fefe4366e51bf76f4adf4ab /net/disk_cache | |
parent | f89f3234d24b0e46bfa69139e6d4a5dae3acc8b5 (diff) | |
download | chromium_src-e0845d5f582add16baf03fcd32ef6f9001b3e347.zip chromium_src-e0845d5f582add16baf03fcd32ef6f9001b3e347.tar.gz chromium_src-e0845d5f582add16baf03fcd32ef6f9001b3e347.tar.bz2 |
RefCounted types should not have public destructors, net/ edition
BUG=123295
TEST=existing
Review URL: https://chromiumcodereview.appspot.com/10417002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@139272 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/disk_cache')
-rw-r--r-- | net/disk_cache/file.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/net/disk_cache/file.h b/net/disk_cache/file.h index 3617e0c..446ccf5 100644 --- a/net/disk_cache/file.h +++ b/net/disk_cache/file.h @@ -19,11 +19,12 @@ namespace disk_cache { // This interface is used to support asynchronous ReadData and WriteData calls. class FileIOCallback { public: - virtual ~FileIOCallback() {} - // Notified of the actual number of bytes read or written. This value is // negative if an error occurred. virtual void OnFileIOComplete(int bytes_copied) = 0; + + protected: + virtual ~FileIOCallback() {} }; // Simple wrapper around a file that allows asynchronous operations. |