| 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 "webkit/browser/appcache/appcache_request_handler.h" | 5 #include "content/browser/appcache/appcache_request_handler.h" |
| 6 | 6 |
| 7 #include "content/browser/appcache/appcache.h" |
| 8 #include "content/browser/appcache/appcache_backend_impl.h" |
| 9 #include "content/browser/appcache/appcache_policy.h" |
| 10 #include "content/browser/appcache/appcache_url_request_job.h" |
| 7 #include "net/url_request/url_request.h" | 11 #include "net/url_request/url_request.h" |
| 8 #include "net/url_request/url_request_job.h" | 12 #include "net/url_request/url_request_job.h" |
| 9 #include "webkit/browser/appcache/appcache.h" | |
| 10 #include "webkit/browser/appcache/appcache_backend_impl.h" | |
| 11 #include "webkit/browser/appcache/appcache_policy.h" | |
| 12 #include "webkit/browser/appcache/appcache_url_request_job.h" | |
| 13 | 13 |
| 14 namespace appcache { | 14 namespace content { |
| 15 | 15 |
| 16 AppCacheRequestHandler::AppCacheRequestHandler( | 16 AppCacheRequestHandler::AppCacheRequestHandler( |
| 17 AppCacheHost* host, ResourceType::Type resource_type) | 17 AppCacheHost* host, ResourceType::Type resource_type) |
| 18 : host_(host), resource_type_(resource_type), | 18 : host_(host), resource_type_(resource_type), |
| 19 is_waiting_for_cache_selection_(false), found_group_id_(0), | 19 is_waiting_for_cache_selection_(false), found_group_id_(0), |
| 20 found_cache_id_(0), found_network_namespace_(false), | 20 found_cache_id_(0), found_network_namespace_(false), |
| 21 cache_entry_not_found_(false), maybe_load_resource_executed_(false) { | 21 cache_entry_not_found_(false), maybe_load_resource_executed_(false) { |
| 22 DCHECK(host_); | 22 DCHECK(host_); |
| 23 host_->AddObserver(this); | 23 host_->AddObserver(this); |
| 24 } | 24 } |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 | 389 |
| 390 if (!host_->associated_cache() || | 390 if (!host_->associated_cache() || |
| 391 !host_->associated_cache()->is_complete()) { | 391 !host_->associated_cache()->is_complete()) { |
| 392 DeliverNetworkResponse(); | 392 DeliverNetworkResponse(); |
| 393 return; | 393 return; |
| 394 } | 394 } |
| 395 | 395 |
| 396 ContinueMaybeLoadSubResource(); | 396 ContinueMaybeLoadSubResource(); |
| 397 } | 397 } |
| 398 | 398 |
| 399 } // namespace appcache | 399 } // namespace content |
| OLD | NEW |