| 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/scoped_ptr.h" | 11 #include "base/scoped_ptr.h" |
| 12 #include "base/task.h" | 12 #include "base/task.h" |
| 13 #include "chrome/common/appcache/chrome_appcache_service.h" | 13 #include "chrome/browser/appcache/chrome_appcache_service.h" |
| 14 | 14 |
| 15 class Profile; | 15 class Profile; |
| 16 | 16 |
| 17 // This class fetches appcache information on behalf of a caller | 17 // This class fetches appcache information on behalf of a caller |
| 18 // on the UI thread. | 18 // on the UI thread. |
| 19 class BrowsingDataAppCacheHelper | 19 class BrowsingDataAppCacheHelper |
| 20 : public base::RefCountedThreadSafe<BrowsingDataAppCacheHelper> { | 20 : public base::RefCountedThreadSafe<BrowsingDataAppCacheHelper> { |
| 21 public: | 21 public: |
| 22 // Contains detailed information about an appcache. | 22 // Contains detailed information about an appcache. |
| 23 struct AppCacheInfo { | 23 struct AppCacheInfo { |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 void DeleteAppCacheInIOThread(int64 group_id); | 63 void DeleteAppCacheInIOThread(int64 group_id); |
| 64 | 64 |
| 65 bool is_fetching_; | 65 bool is_fetching_; |
| 66 std::vector<AppCacheInfo> info_list_; | 66 std::vector<AppCacheInfo> info_list_; |
| 67 scoped_ptr<Callback0::Type> completion_callback_; | 67 scoped_ptr<Callback0::Type> completion_callback_; |
| 68 | 68 |
| 69 DISALLOW_COPY_AND_ASSIGN(BrowsingDataAppCacheHelper); | 69 DISALLOW_COPY_AND_ASSIGN(BrowsingDataAppCacheHelper); |
| 70 }; | 70 }; |
| 71 | 71 |
| 72 #endif // CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ | 72 #endif // CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ |
| OLD | NEW |