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

Side by Side Diff: content/browser/service_worker/service_worker_url_request_job.h

Issue 2055053003: [BlobAsync] Disk support for blob storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Combined BlobSlice & BlobFlattener files, more comments, a little cleanup. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ 5 #ifndef CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ 6 #define CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 // StreamObserver override: 153 // StreamObserver override:
154 void OnDataAvailable(Stream* stream) override; 154 void OnDataAvailable(Stream* stream) override;
155 155
156 // StreamRegisterObserver override: 156 // StreamRegisterObserver override:
157 void OnStreamRegistered(Stream* stream) override; 157 void OnStreamRegistered(Stream* stream) override;
158 158
159 base::WeakPtr<ServiceWorkerURLRequestJob> GetWeakPtr(); 159 base::WeakPtr<ServiceWorkerURLRequestJob> GetWeakPtr();
160 160
161 private: 161 private:
162 class BlobConstructionWaiter; 162 class BlobFilesWaiter;
163 163
164 enum ResponseType { 164 enum ResponseType {
165 NOT_DETERMINED, 165 NOT_DETERMINED,
166 FALLBACK_TO_NETWORK, 166 FALLBACK_TO_NETWORK,
167 FALLBACK_TO_RENDERER, // Use this when falling back with CORS check 167 FALLBACK_TO_RENDERER, // Use this when falling back with CORS check
168 FORWARD_TO_SERVICE_WORKER, 168 FORWARD_TO_SERVICE_WORKER,
169 }; 169 };
170 170
171 enum ResponseBodyType { 171 enum ResponseBodyType {
172 UNKNOWN, 172 UNKNOWN,
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
294 ServiceWorkerFetchType fetch_type_; 294 ServiceWorkerFetchType fetch_type_;
295 295
296 ResponseBodyType response_body_type_ = UNKNOWN; 296 ResponseBodyType response_body_type_ = UNKNOWN;
297 bool did_record_result_ = false; 297 bool did_record_result_ = false;
298 298
299 bool response_is_in_cache_storage_ = false; 299 bool response_is_in_cache_storage_ = false;
300 std::string response_cache_storage_cache_name_; 300 std::string response_cache_storage_cache_name_;
301 301
302 ServiceWorkerHeaderList cors_exposed_header_names_; 302 ServiceWorkerHeaderList cors_exposed_header_names_;
303 303
304 std::unique_ptr<BlobConstructionWaiter> blob_construction_waiter_; 304 std::unique_ptr<BlobFilesWaiter> blob_construction_waiter_;
michaeln 2016/08/15 22:44:43 maybe chance the name of the member too
dmurph 2016/08/19 00:18:32 Done.
305 305
306 bool worker_already_activated_ = false; 306 bool worker_already_activated_ = false;
307 EmbeddedWorkerStatus initial_worker_status_ = EmbeddedWorkerStatus::STOPPED; 307 EmbeddedWorkerStatus initial_worker_status_ = EmbeddedWorkerStatus::STOPPED;
308 308
309 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_; 309 base::WeakPtrFactory<ServiceWorkerURLRequestJob> weak_factory_;
310 310
311 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob); 311 DISALLOW_COPY_AND_ASSIGN(ServiceWorkerURLRequestJob);
312 }; 312 };
313 313
314 } // namespace content 314 } // namespace content
315 315
316 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_ 316 #endif // CONTENT_BROWSER_SERVICE_WORKER_SERVICE_WORKER_URL_REQUEST_JOB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698