| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ |
| 6 #define CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/scoped_ptr.h" | 10 #include "base/scoped_ptr.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 // fetch its information from the appcache service, but gets them passed as | 54 // fetch its information from the appcache service, but gets them passed as |
| 55 // a parameter during construction. | 55 // a parameter during construction. |
| 56 class CannedBrowsingDataAppCacheHelper : public BrowsingDataAppCacheHelper { | 56 class CannedBrowsingDataAppCacheHelper : public BrowsingDataAppCacheHelper { |
| 57 public: | 57 public: |
| 58 explicit CannedBrowsingDataAppCacheHelper(Profile* profile); | 58 explicit CannedBrowsingDataAppCacheHelper(Profile* profile); |
| 59 | 59 |
| 60 // Add an appcache to the set of canned caches that is returned by this | 60 // Add an appcache to the set of canned caches that is returned by this |
| 61 // helper. | 61 // helper. |
| 62 void AddAppCache(const GURL& manifest_url); | 62 void AddAppCache(const GURL& manifest_url); |
| 63 | 63 |
| 64 // Clears the list of canned caches. |
| 65 void Reset(); |
| 66 |
| 64 // BrowsingDataAppCacheHelper methods. | 67 // BrowsingDataAppCacheHelper methods. |
| 65 virtual void StartFetching(Callback0::Type* completion_callback); | 68 virtual void StartFetching(Callback0::Type* completion_callback); |
| 66 virtual void CancelNotification() {} | 69 virtual void CancelNotification() {} |
| 67 | 70 |
| 68 private: | 71 private: |
| 69 virtual ~CannedBrowsingDataAppCacheHelper() {} | 72 virtual ~CannedBrowsingDataAppCacheHelper() {} |
| 70 | 73 |
| 71 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); | 74 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); |
| 72 }; | 75 }; |
| 73 | 76 |
| 74 #endif // CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ | 77 #endif // CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ |
| OLD | NEW |