| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/browsing_data_appcache_helper.h" | 5 #include "chrome/browser/browsing_data_appcache_helper.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
| 9 #include "chrome/browser/net/chrome_url_request_context.h" | |
| 10 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
| 12 #include "content/public/browser/browser_thread.h" | 11 #include "content/public/browser/browser_thread.h" |
| 13 #include "webkit/appcache/appcache_database.h" | 12 #include "webkit/appcache/appcache_database.h" |
| 14 #include "webkit/appcache/appcache_storage.h" | 13 #include "webkit/appcache/appcache_storage.h" |
| 15 | 14 |
| 16 using appcache::AppCacheDatabase; | 15 using appcache::AppCacheDatabase; |
| 17 using content::BrowserThread; | 16 using content::BrowserThread; |
| 18 | 17 |
| 19 BrowsingDataAppCacheHelper::BrowsingDataAppCacheHelper(Profile* profile) | 18 BrowsingDataAppCacheHelper::BrowsingDataAppCacheHelper(Profile* profile) |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 140 bool CannedBrowsingDataAppCacheHelper::empty() const { | 139 bool CannedBrowsingDataAppCacheHelper::empty() const { |
| 141 return info_collection_->infos_by_origin.empty(); | 140 return info_collection_->infos_by_origin.empty(); |
| 142 } | 141 } |
| 143 | 142 |
| 144 void CannedBrowsingDataAppCacheHelper::StartFetching( | 143 void CannedBrowsingDataAppCacheHelper::StartFetching( |
| 145 const base::Closure& completion_callback) { | 144 const base::Closure& completion_callback) { |
| 146 completion_callback.Run(); | 145 completion_callback.Run(); |
| 147 } | 146 } |
| 148 | 147 |
| 149 CannedBrowsingDataAppCacheHelper::~CannedBrowsingDataAppCacheHelper() {} | 148 CannedBrowsingDataAppCacheHelper::~CannedBrowsingDataAppCacheHelper() {} |
| OLD | NEW |