| OLD | NEW |
| 1 // Copyright (c) 2017 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2017 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 CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ | 5 #ifndef CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ |
| 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ | 6 #define CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ |
| 7 | 7 |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 void OnResponseBodyStreamReady(MojoResult result); | 84 void OnResponseBodyStreamReady(MojoResult result); |
| 85 | 85 |
| 86 // Notifies the client about request completion. | 86 // Notifies the client about request completion. |
| 87 void NotifyCompleted(int error_code); | 87 void NotifyCompleted(int error_code); |
| 88 | 88 |
| 89 // The current request. | 89 // The current request. |
| 90 ResourceRequest request_; | 90 ResourceRequest request_; |
| 91 | 91 |
| 92 base::WeakPtr<AppCacheStorage> storage_; | 92 base::WeakPtr<AppCacheStorage> storage_; |
| 93 | 93 |
| 94 // The response details. | |
| 95 scoped_refptr<AppCacheResponseInfo> info_; | |
| 96 | |
| 97 // Used to read the cache. | 94 // Used to read the cache. |
| 98 std::unique_ptr<AppCacheResponseReader> reader_; | 95 std::unique_ptr<AppCacheResponseReader> reader_; |
| 99 | 96 |
| 100 // Time when the request started. | 97 // Time when the request started. |
| 101 base::TimeTicks start_time_tick_; | 98 base::TimeTicks start_time_tick_; |
| 102 | 99 |
| 103 // The AppCache manifest URL. | 100 // The AppCache manifest URL. |
| 104 GURL manifest_url_; | 101 GURL manifest_url_; |
| 105 | 102 |
| 106 // The AppCache id. | 103 // The AppCache id. |
| (...skipping 24 matching lines...) Expand all Loading... |
| 131 // The Callback to be invoked in the network service land to indicate if | 128 // The Callback to be invoked in the network service land to indicate if |
| 132 // the request can be serviced via the AppCache. | 129 // the request can be serviced via the AppCache. |
| 133 LoaderCallback loader_callback_; | 130 LoaderCallback loader_callback_; |
| 134 | 131 |
| 135 DISALLOW_COPY_AND_ASSIGN(AppCacheURLLoaderJob); | 132 DISALLOW_COPY_AND_ASSIGN(AppCacheURLLoaderJob); |
| 136 }; | 133 }; |
| 137 | 134 |
| 138 } // namespace content | 135 } // namespace content |
| 139 | 136 |
| 140 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ | 137 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ |
| OLD | NEW |