diff options
author | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-25 20:48:11 +0000 |
---|---|---|
committer | bulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-25 20:48:11 +0000 |
commit | 4cc2c750a655252227c6fbbe4da417e491033065 (patch) | |
tree | 1a00ca87c88e1f47da2eaca0ff481a54bf2b0d72 /chrome/browser/browsing_data_local_storage_helper.h | |
parent | f11f6218bd425c87b82656019b27e853b91a40da (diff) | |
download | chromium_src-4cc2c750a655252227c6fbbe4da417e491033065.zip chromium_src-4cc2c750a655252227c6fbbe4da417e491033065.tar.gz chromium_src-4cc2c750a655252227c6fbbe4da417e491033065.tar.bz2 |
Fixes valgrind following 37001:
+ makes the callback mock a scoped_ptr
+ adds a virtual dtor (so that the vector in the mock is destroyed)
+ the mock needs to be friend of the base class
Review URL: http://codereview.chromium.org/546131
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@37037 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_local_storage_helper.h')
-rw-r--r-- | chrome/browser/browsing_data_local_storage_helper.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browsing_data_local_storage_helper.h b/chrome/browser/browsing_data_local_storage_helper.h index f9d9398d..11200ed 100644 --- a/chrome/browser/browsing_data_local_storage_helper.h +++ b/chrome/browser/browsing_data_local_storage_helper.h @@ -71,6 +71,10 @@ class BrowsingDataLocalStorageHelper virtual void DeleteAllLocalStorageFiles(); private: + friend class base::RefCountedThreadSafe<BrowsingDataLocalStorageHelper>; + friend class MockBrowsingDataLocalStorageHelper; + virtual ~BrowsingDataLocalStorageHelper(); + // Enumerates all local storage files in the WEBKIT thread. void FetchLocalStorageInfoInWebKitThread(); // Notifies the completion callback in the UI thread. |