Upstream version 10.39.225.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / browsing_data / browsing_data_appcache_helper.h
index a0ceb3d..80e7bd3 100644 (file)
 #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
@@ -26,7 +24,7 @@ class BrowsingDataAppCacheHelper
  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);
@@ -58,12 +56,8 @@ class BrowsingDataAppCacheHelper
 // 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.
@@ -88,8 +82,6 @@ class CannedBrowsingDataAppCacheHelper : public BrowsingDataAppCacheHelper {
  private:
   virtual ~CannedBrowsingDataAppCacheHelper();
 
-  Profile* profile_;
-
   DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper);
 };