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. | |
98 std::unique_ptr<AppCacheResponseReader> reader_; | |
99 | |
100 // Time when the request started. | 94 // Time when the request started. |
101 base::TimeTicks start_time_tick_; | 95 base::TimeTicks start_time_tick_; |
102 | 96 |
103 // The AppCache manifest URL. | 97 // The AppCache manifest URL. |
104 GURL manifest_url_; | 98 GURL manifest_url_; |
105 | 99 |
106 // The AppCache id. | 100 // The AppCache id. |
107 int64_t cache_id_; | 101 int64_t cache_id_; |
108 | 102 |
109 AppCacheEntry entry_; | 103 AppCacheEntry entry_; |
(...skipping 21 matching lines...) Expand all Loading... |
131 // The Callback to be invoked in the network service land to indicate if | 125 // The Callback to be invoked in the network service land to indicate if |
132 // the request can be serviced via the AppCache. | 126 // the request can be serviced via the AppCache. |
133 LoaderCallback loader_callback_; | 127 LoaderCallback loader_callback_; |
134 | 128 |
135 DISALLOW_COPY_AND_ASSIGN(AppCacheURLLoaderJob); | 129 DISALLOW_COPY_AND_ASSIGN(AppCacheURLLoaderJob); |
136 }; | 130 }; |
137 | 131 |
138 } // namespace content | 132 } // namespace content |
139 | 133 |
140 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ | 134 #endif // CONTENT_BROWSER_APPCACHE_APPCACHE_URL_LOADER_JOB_H_ |
OLD | NEW |