Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Unified Diff: content/browser/appcache/appcache_service_impl.cc

Issue 1420723009: AppCache: Remove dead code from AppCacheService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/appcache/appcache_service_impl.h ('k') | content/public/browser/appcache_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/appcache/appcache_service_impl.cc
diff --git a/content/browser/appcache/appcache_service_impl.cc b/content/browser/appcache/appcache_service_impl.cc
index 01cbb46add06ca9490036a440b9c9437ddf5d0b5..37d64244ada044a73aef2b63c467b96deaa540dc 100644
--- a/content/browser/appcache/appcache_service_impl.cc
+++ b/content/browser/appcache/appcache_service_impl.cc
@@ -83,54 +83,6 @@ void AppCacheServiceImpl::AsyncHelper::Cancel() {
service_ = NULL;
}
-// CanHandleOfflineHelper -------
-
-class AppCacheServiceImpl::CanHandleOfflineHelper : AsyncHelper {
- public:
- CanHandleOfflineHelper(
- AppCacheServiceImpl* service, const GURL& url,
- const GURL& first_party, const net::CompletionCallback& callback)
- : AsyncHelper(service, callback),
- url_(url),
- first_party_(first_party) {
- }
-
- void Start() override {
- AppCachePolicy* policy = service_->appcache_policy();
- if (policy && !policy->CanLoadAppCache(url_, first_party_)) {
- CallCallback(net::ERR_FAILED);
- delete this;
- return;
- }
-
- service_->storage()->FindResponseForMainRequest(url_, GURL(), this);
- }
-
- private:
- // AppCacheStorage::Delegate implementation.
- void OnMainResponseFound(const GURL& url,
- const AppCacheEntry& entry,
- const GURL& fallback_url,
- const AppCacheEntry& fallback_entry,
- int64 cache_id,
- int64 group_id,
- const GURL& mainfest_url) override;
-
- GURL url_;
- GURL first_party_;
-
- DISALLOW_COPY_AND_ASSIGN(CanHandleOfflineHelper);
-};
-
-void AppCacheServiceImpl::CanHandleOfflineHelper::OnMainResponseFound(
- const GURL& url, const AppCacheEntry& entry,
- const GURL& fallback_url, const AppCacheEntry& fallback_entry,
- int64 cache_id, int64 group_id, const GURL& manifest_url) {
- bool can = (entry.has_response_id() || fallback_entry.has_response_id());
- CallCallback(can ? net::OK : net::ERR_FAILED);
- delete this;
-}
-
// DeleteHelper -------
class AppCacheServiceImpl::DeleteHelper : public AsyncHelper {
@@ -524,15 +476,6 @@ void AppCacheServiceImpl::Reinitialize() {
Initialize(cache_directory_, db_thread_, cache_thread_);
}
-void AppCacheServiceImpl::CanHandleMainResourceOffline(
- const GURL& url,
- const GURL& first_party,
- const net::CompletionCallback& callback) {
- CanHandleOfflineHelper* helper =
- new CanHandleOfflineHelper(this, url, first_party, callback);
- helper->Start();
-}
-
void AppCacheServiceImpl::GetAllAppCacheInfo(
AppCacheInfoCollection* collection,
const net::CompletionCallback& callback) {
« no previous file with comments | « content/browser/appcache/appcache_service_impl.h ('k') | content/public/browser/appcache_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698