OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_BROWSING_DATA_APPCACHE_HELPER_H_ | 5 #ifndef CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_ | 6 #define CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "net/base/completion_callback.h" | 10 #include "net/base/completion_callback.h" |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 bool empty() const; | 74 bool empty() const; |
75 | 75 |
76 // Returns the number of app cache resources. | 76 // Returns the number of app cache resources. |
77 size_t GetAppCacheCount() const; | 77 size_t GetAppCacheCount() const; |
78 | 78 |
79 // Returns a current map with the |AppCacheInfoVector|s per origin. | 79 // Returns a current map with the |AppCacheInfoVector|s per origin. |
80 const OriginAppCacheInfoMap& GetOriginAppCacheInfoMap() const; | 80 const OriginAppCacheInfoMap& GetOriginAppCacheInfoMap() const; |
81 | 81 |
82 // BrowsingDataAppCacheHelper methods. | 82 // BrowsingDataAppCacheHelper methods. |
83 virtual void StartFetching(const base::Closure& completion_callback) OVERRIDE; | 83 virtual void StartFetching(const base::Closure& completion_callback) OVERRIDE; |
| 84 virtual void DeleteAppCacheGroup(const GURL& manifest_url) OVERRIDE; |
84 | 85 |
85 private: | 86 private: |
86 virtual ~CannedBrowsingDataAppCacheHelper(); | 87 virtual ~CannedBrowsingDataAppCacheHelper(); |
87 | 88 |
88 Profile* profile_; | 89 Profile* profile_; |
89 | 90 |
90 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); | 91 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); |
91 }; | 92 }; |
92 | 93 |
93 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_ | 94 #endif // CHROME_BROWSER_BROWSING_DATA_BROWSING_DATA_APPCACHE_HELPER_H_ |
OLD | NEW |