Chromium Code Reviews| 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_cache.h" | 5 #include "content/browser/cache_storage/cache_storage_cache.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 270 CacheStorage* cache_storage, | 270 CacheStorage* cache_storage, |
| 271 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, | 271 const scoped_refptr<net::URLRequestContextGetter>& request_context_getter, |
| 272 const scoped_refptr<storage::QuotaManagerProxy>& quota_manager_proxy, | 272 const scoped_refptr<storage::QuotaManagerProxy>& quota_manager_proxy, |
| 273 base::WeakPtr<storage::BlobStorageContext> blob_context) | 273 base::WeakPtr<storage::BlobStorageContext> blob_context) |
| 274 : CacheStorageCache(origin, | 274 : CacheStorageCache(origin, |
| 275 cache_name, | 275 cache_name, |
| 276 path, | 276 path, |
| 277 cache_storage, | 277 cache_storage, |
| 278 request_context_getter, | 278 request_context_getter, |
| 279 quota_manager_proxy, | 279 quota_manager_proxy, |
| 280 blob_context), | 280 blob_context, |
| 281 0), | |
|
jkarlin
2016/10/21 18:04:19
can you add /* cache size */ after the 0 to make i
cmumford
2016/11/10 17:28:17
Done.
| |
| 281 delay_backend_creation_(false) {} | 282 delay_backend_creation_(false) {} |
| 282 | 283 |
| 283 void CreateBackend(const ErrorCallback& callback) override { | 284 void CreateBackend(const ErrorCallback& callback) override { |
| 284 backend_creation_callback_ = callback; | 285 backend_creation_callback_ = callback; |
| 285 if (delay_backend_creation_) | 286 if (delay_backend_creation_) |
| 286 return; | 287 return; |
| 287 ContinueCreateBackend(); | 288 ContinueCreateBackend(); |
| 288 } | 289 } |
| 289 | 290 |
| 290 void ContinueCreateBackend() { | 291 void ContinueCreateBackend() { |
| (...skipping 1333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1624 EXPECT_EQ(1, sequence_out); | 1625 EXPECT_EQ(1, sequence_out); |
| 1625 close_loop2->Run(); | 1626 close_loop2->Run(); |
| 1626 EXPECT_EQ(2, sequence_out); | 1627 EXPECT_EQ(2, sequence_out); |
| 1627 } | 1628 } |
| 1628 | 1629 |
| 1629 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest, | 1630 INSTANTIATE_TEST_CASE_P(CacheStorageCacheTest, |
| 1630 CacheStorageCacheTestP, | 1631 CacheStorageCacheTestP, |
| 1631 ::testing::Values(false, true)); | 1632 ::testing::Values(false, true)); |
| 1632 | 1633 |
| 1633 } // namespace content | 1634 } // namespace content |
| OLD | NEW |