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 "base/task.h" |
11 #include "chrome/browser/appcache/chrome_appcache_service.h" | |
12 #include "chrome/common/net/url_request_context_getter.h" | 11 #include "chrome/common/net/url_request_context_getter.h" |
| 12 #include "content/browser/appcache/chrome_appcache_service.h" |
13 #include "googleurl/src/gurl.h" | 13 #include "googleurl/src/gurl.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 explicit BrowsingDataAppCacheHelper(Profile* profile); | 22 explicit BrowsingDataAppCacheHelper(Profile* profile); |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 virtual void StartFetching(Callback0::Type* completion_callback); | 70 virtual void StartFetching(Callback0::Type* completion_callback); |
71 virtual void CancelNotification() {} | 71 virtual void CancelNotification() {} |
72 | 72 |
73 private: | 73 private: |
74 virtual ~CannedBrowsingDataAppCacheHelper(); | 74 virtual ~CannedBrowsingDataAppCacheHelper(); |
75 | 75 |
76 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); | 76 DISALLOW_COPY_AND_ASSIGN(CannedBrowsingDataAppCacheHelper); |
77 }; | 77 }; |
78 | 78 |
79 #endif // CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ | 79 #endif // CHROME_BROWSER_BROWSING_DATA_APPCACHE_HELPER_H_ |
OLD | NEW |