| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 WEBKIT_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ | 5 #ifndef WEBKIT_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ |
| 6 #define WEBKIT_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ | 6 #define WEBKIT_APPCACHE_APPCACHE_URL_REQUEST_JOB_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "net/http/http_byte_range.h" | 10 #include "net/http/http_byte_range.h" |
| (...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // Returns true if the job has been started by the net library. | 62 // Returns true if the job has been started by the net library. |
| 63 bool has_been_started() const { | 63 bool has_been_started() const { |
| 64 return has_been_started_; | 64 return has_been_started_; |
| 65 } | 65 } |
| 66 | 66 |
| 67 // Returns true if the job has been killed. | 67 // Returns true if the job has been killed. |
| 68 bool has_been_killed() const { | 68 bool has_been_killed() const { |
| 69 return has_been_killed_; | 69 return has_been_killed_; |
| 70 } | 70 } |
| 71 | 71 |
| 72 // Returns true if the cache entry was not found in the disk cache. |
| 73 bool cache_entry_not_found() const { |
| 74 return cache_entry_not_found_; |
| 75 } |
| 76 |
| 72 private: | 77 private: |
| 73 friend class AppCacheRequestHandlerTest; | 78 friend class AppCacheRequestHandlerTest; |
| 74 friend class AppCacheURLRequestJobTest; | 79 friend class AppCacheURLRequestJobTest; |
| 75 | 80 |
| 76 enum DeliveryType { | 81 enum DeliveryType { |
| 77 AWAITING_DELIVERY_ORDERS, | 82 AWAITING_DELIVERY_ORDERS, |
| 78 APPCACHED_DELIVERY, | 83 APPCACHED_DELIVERY, |
| 79 NETWORK_DELIVERY, | 84 NETWORK_DELIVERY, |
| 80 ERROR_DELIVERY | 85 ERROR_DELIVERY |
| 81 }; | 86 }; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 } | 130 } |
| 126 | 131 |
| 127 AppCacheStorage* storage_; | 132 AppCacheStorage* storage_; |
| 128 bool has_been_started_; | 133 bool has_been_started_; |
| 129 bool has_been_killed_; | 134 bool has_been_killed_; |
| 130 DeliveryType delivery_type_; | 135 DeliveryType delivery_type_; |
| 131 GURL manifest_url_; | 136 GURL manifest_url_; |
| 132 int64 cache_id_; | 137 int64 cache_id_; |
| 133 AppCacheEntry entry_; | 138 AppCacheEntry entry_; |
| 134 bool is_fallback_; | 139 bool is_fallback_; |
| 140 bool cache_entry_not_found_; |
| 135 scoped_refptr<AppCacheResponseInfo> info_; | 141 scoped_refptr<AppCacheResponseInfo> info_; |
| 136 net::HttpByteRange range_requested_; | 142 net::HttpByteRange range_requested_; |
| 137 scoped_ptr<net::HttpResponseInfo> range_response_info_; | 143 scoped_ptr<net::HttpResponseInfo> range_response_info_; |
| 138 scoped_ptr<AppCacheResponseReader> reader_; | 144 scoped_ptr<AppCacheResponseReader> reader_; |
| 139 net::CompletionCallbackImpl<AppCacheURLRequestJob> read_callback_; | 145 net::CompletionCallbackImpl<AppCacheURLRequestJob> read_callback_; |
| 140 }; | 146 }; |
| 141 | 147 |
| 142 } // namespace appcache | 148 } // namespace appcache |
| 143 | 149 |
| 144 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ | 150 #endif // WEBKIT_APPCACHE_APPCACHE_REQUEST_HANDLER_H_ |
| 145 | 151 |
| OLD | NEW |