diff options
author | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 12:27:37 +0000 |
---|---|---|
committer | jochen@chromium.org <jochen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-15 12:27:37 +0000 |
commit | 712a9a05370715409d44e66479e863af5f3568e1 (patch) | |
tree | 853c9f52328b63b4b12c861ea2ef7129747d8dba /chrome/browser/browsing_data_appcache_helper.h | |
parent | 3e3342690f7c69fa6e5802782c33a12eec000129 (diff) | |
download | chromium_src-712a9a05370715409d44e66479e863af5f3568e1.zip chromium_src-712a9a05370715409d44e66479e863af5f3568e1.tar.gz chromium_src-712a9a05370715409d44e66479e863af5f3568e1.tar.bz2 |
Use copies of canned browsing data helpers to populate the cookies tree model.
If the fetching of data is cancelled, the helpers might not be ready yet to be reused, triggering an assertion.
BUG=62311
TEST=interactive ui tests:CollectedCookies.*
Review URL: http://codereview.chromium.org/6670033
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@78198 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browsing_data_appcache_helper.h')
-rw-r--r-- | chrome/browser/browsing_data_appcache_helper.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/chrome/browser/browsing_data_appcache_helper.h b/chrome/browser/browsing_data_appcache_helper.h index 38eaed4..b66b9d2 100644 --- a/chrome/browser/browsing_data_appcache_helper.h +++ b/chrome/browser/browsing_data_appcache_helper.h @@ -56,6 +56,11 @@ class CannedBrowsingDataAppCacheHelper : public BrowsingDataAppCacheHelper { public: explicit CannedBrowsingDataAppCacheHelper(Profile* profile); + // Return a copy of the appcache helper. Only one consumer can use the + // StartFetching method at a time, so we need to create a copy of the helper + // everytime we instantiate a cookies tree model for it. + CannedBrowsingDataAppCacheHelper* Clone(); + // Add an appcache to the set of canned caches that is returned by this // helper. void AddAppCache(const GURL& manifest_url); @@ -73,6 +78,8 @@ class CannedBrowsingDataAppCacheHelper : public BrowsingDataAppCacheHelper { private: virtual ~CannedBrowsingDataAppCacheHelper(); + Profile* profile_; + DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); }; |