| OLD | NEW |
| 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 #include "content/browser/cache_storage/cache_storage_manager.h" | 5 #include "content/browser/cache_storage/cache_storage_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 373 | 373 |
| 374 std::unique_ptr<storage::BlobDataHandle> blob_handle = | 374 std::unique_ptr<storage::BlobDataHandle> blob_handle = |
| 375 blob_storage_context_->AddFinishedBlob(blob_data.get()); | 375 blob_storage_context_->AddFinishedBlob(blob_data.get()); |
| 376 std::unique_ptr<std::vector<GURL>> url_list = | 376 std::unique_ptr<std::vector<GURL>> url_list = |
| 377 base::MakeUnique<std::vector<GURL>>(); | 377 base::MakeUnique<std::vector<GURL>>(); |
| 378 url_list->push_back(request.url); | 378 url_list->push_back(request.url); |
| 379 ServiceWorkerResponse response( | 379 ServiceWorkerResponse response( |
| 380 std::move(url_list), status_code, "OK", | 380 std::move(url_list), status_code, "OK", |
| 381 blink::WebServiceWorkerResponseTypeDefault, | 381 blink::WebServiceWorkerResponseTypeDefault, |
| 382 base::MakeUnique<ServiceWorkerHeaderMap>(response_headers), | 382 base::MakeUnique<ServiceWorkerHeaderMap>(response_headers), |
| 383 blob_handle->uuid(), request.url.spec().size(), GURL(), | 383 blob_handle->uuid(), request.url.spec().size(), |
| 384 blink::WebServiceWorkerResponseErrorUnknown, base::Time(), | 384 blink::WebServiceWorkerResponseErrorUnknown, base::Time(), |
| 385 false /* is_in_cache_storage */, | 385 false /* is_in_cache_storage */, |
| 386 std::string() /* cache_storage_cache_name */, | 386 std::string() /* cache_storage_cache_name */, |
| 387 base::MakeUnique< | 387 base::MakeUnique< |
| 388 ServiceWorkerHeaderList>() /* cors_exposed_header_names */); | 388 ServiceWorkerHeaderList>() /* cors_exposed_header_names */); |
| 389 | 389 |
| 390 CacheStorageBatchOperation operation; | 390 CacheStorageBatchOperation operation; |
| 391 operation.operation_type = CACHE_STORAGE_CACHE_OPERATION_TYPE_PUT; | 391 operation.operation_type = CACHE_STORAGE_CACHE_OPERATION_TYPE_PUT; |
| 392 operation.request = request; | 392 operation.request = request; |
| 393 operation.response = response; | 393 operation.response = response; |
| (...skipping 1108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1502 | 1502 |
| 1503 INSTANTIATE_TEST_CASE_P(CacheStorageManagerTests, | 1503 INSTANTIATE_TEST_CASE_P(CacheStorageManagerTests, |
| 1504 CacheStorageManagerTestP, | 1504 CacheStorageManagerTestP, |
| 1505 ::testing::Values(false, true)); | 1505 ::testing::Values(false, true)); |
| 1506 | 1506 |
| 1507 INSTANTIATE_TEST_CASE_P(CacheStorageQuotaClientTests, | 1507 INSTANTIATE_TEST_CASE_P(CacheStorageQuotaClientTests, |
| 1508 CacheStorageQuotaClientTestP, | 1508 CacheStorageQuotaClientTestP, |
| 1509 ::testing::Values(false, true)); | 1509 ::testing::Values(false, true)); |
| 1510 | 1510 |
| 1511 } // namespace content | 1511 } // namespace content |
| OLD | NEW |