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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "base/task.h" |
10 #include "chrome/browser/appcache/chrome_appcache_service.h" | 11 #include "chrome/browser/appcache/chrome_appcache_service.h" |
11 #include "chrome/common/net/url_request_context_getter.h" | 12 #include "chrome/common/net/url_request_context_getter.h" |
12 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.h" |
13 | 14 |
14 class Profile; | 15 class Profile; |
15 | 16 |
16 // This class fetches appcache information on behalf of a caller | 17 // This class fetches appcache information on behalf of a caller |
17 // on the UI thread. | 18 // on the UI thread. |
18 class BrowsingDataAppCacheHelper | 19 class BrowsingDataAppCacheHelper |
19 : public base::RefCountedThreadSafe<BrowsingDataAppCacheHelper> { | 20 : public base::RefCountedThreadSafe<BrowsingDataAppCacheHelper> { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 virtual void StartFetching(Callback0::Type* completion_callback); | 70 virtual void StartFetching(Callback0::Type* completion_callback); |
70 virtual void CancelNotification() {} | 71 virtual void CancelNotification() {} |
71 | 72 |
72 private: | 73 private: |
73 virtual ~CannedBrowsingDataAppCacheHelper(); | 74 virtual ~CannedBrowsingDataAppCacheHelper(); |
74 | 75 |
75 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); | 76 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); |
76 }; | 77 }; |
77 | 78 |
78 #endif // CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ | 79 #endif // CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ |
OLD | NEW |