#include "net/base/completion_callback.h"
#include "url/gurl.h"
-class Profile;
-
namespace content {
-class AppCacheService;
+class BrowserContext;
}
// This class fetches appcache information on behalf of a caller
public:
typedef std::map<GURL, content::AppCacheInfoVector> OriginAppCacheInfoMap;
- explicit BrowsingDataAppCacheHelper(Profile* profile);
+ explicit BrowsingDataAppCacheHelper(content::BrowserContext* browser_context);
virtual void StartFetching(const base::Closure& completion_callback);
virtual void DeleteAppCacheGroup(const GURL& manifest_url);
// a parameter during construction.
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
- // every time we instantiate a cookies tree model for it.
- CannedBrowsingDataAppCacheHelper* Clone();
+ explicit CannedBrowsingDataAppCacheHelper(
+ content::BrowserContext* browser_context);
// Add an appcache to the set of canned caches that is returned by this
// helper.
private:
virtual ~CannedBrowsingDataAppCacheHelper();
- Profile* profile_;
-
DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper);
};