summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browsing_data_indexed_db_helper.h
diff options
context:
space:
mode:
authormattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-04 23:35:44 +0000
committermattm@chromium.org <mattm@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-04 23:35:44 +0000
commit3f2f5f05a2a9afe503e0c4e13a8dad87ab214b14 (patch)
tree1177d24b6ca5f81de4a0d0ae0b748cd596d5beaf /chrome/browser/browsing_data_indexed_db_helper.h
parentd2981f38a23525812f2030cf68a5ef6259e30fb7 (diff)
downloadchromium_src-3f2f5f05a2a9afe503e0c4e13a8dad87ab214b14.zip
chromium_src-3f2f5f05a2a9afe503e0c4e13a8dad87ab214b14.tar.gz
chromium_src-3f2f5f05a2a9afe503e0c4e13a8dad87ab214b14.tar.bz2
Use WeakPtrFactory in CookieTreeModel instead of explicit cancellation on destruction.
BUG=121863 TEST=trybots Review URL: https://chromiumcodereview.appspot.com/9968112 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@130767 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_indexed_db_helper.h')
-rw-r--r--chrome/browser/browsing_data_indexed_db_helper.h8
1 files changed, 1 insertions, 7 deletions
diff --git a/chrome/browser/browsing_data_indexed_db_helper.h b/chrome/browser/browsing_data_indexed_db_helper.h
index 5916b40..3c73d9f 100644
--- a/chrome/browser/browsing_data_indexed_db_helper.h
+++ b/chrome/browser/browsing_data_indexed_db_helper.h
@@ -25,8 +25,7 @@ class Profile;
// aggregating and deleting browsing data stored in indexed databases. A
// client of this class need to call StartFetching from the UI thread to
// initiate the flow, and it'll be notified by the callback in its UI thread at
-// some later point. The client must call CancelNotification() if it's
-// destroyed before the callback is notified.
+// some later point.
class BrowsingDataIndexedDBHelper
: public base::RefCountedThreadSafe<BrowsingDataIndexedDBHelper> {
public:
@@ -53,10 +52,6 @@ class BrowsingDataIndexedDBHelper
virtual void StartFetching(
const base::Callback<void(const std::list<IndexedDBInfo>&)>&
callback) = 0;
- // Cancels the notification callback (i.e., the window that created it no
- // longer exists).
- // This must be called only in the UI thread.
- virtual void CancelNotification() = 0;
// Requests a single indexed database to be deleted in the WEBKIT thread.
virtual void DeleteIndexedDB(const GURL& origin) = 0;
@@ -93,7 +88,6 @@ class CannedBrowsingDataIndexedDBHelper
virtual void StartFetching(
const base::Callback<void(const std::list<IndexedDBInfo>&)>&
callback) OVERRIDE;
- virtual void CancelNotification() OVERRIDE;
virtual void DeleteIndexedDB(const GURL& origin) OVERRIDE {}
private: