| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "base/memory/ptr_util.h" |
| 5 #include "base/synchronization/waitable_event.h" | 6 #include "base/synchronization/waitable_event.h" |
| 6 #include "chrome/browser/browsing_data/cache_test_util.h" | 7 #include "chrome/browser/browsing_data/cache_test_util.h" |
| 7 #include "net/disk_cache/disk_cache.h" | 8 #include "net/disk_cache/disk_cache.h" |
| 8 #include "net/http/http_cache.h" | 9 #include "net/http/http_cache.h" |
| 9 #include "net/url_request/url_request_context.h" | 10 #include "net/url_request/url_request_context.h" |
| 10 #include "net/url_request/url_request_context_getter.h" | 11 #include "net/url_request/url_request_context_getter.h" |
| 11 | 12 |
| 12 using content::BrowserThread; | 13 using content::BrowserThread; |
| 13 | 14 |
| 14 CacheTestUtil::CacheTestUtil(content::StoragePartition* partition) | 15 CacheTestUtil::CacheTestUtil(content::StoragePartition* partition) |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 | 138 |
| 138 if (current_entry_) { | 139 if (current_entry_) { |
| 139 keys_.push_back(current_entry_->GetKey()); | 140 keys_.push_back(current_entry_->GetKey()); |
| 140 } | 141 } |
| 141 | 142 |
| 142 error = iterator_->OpenNextEntry( | 143 error = iterator_->OpenNextEntry( |
| 143 ¤t_entry_, | 144 ¤t_entry_, |
| 144 base::Bind(&CacheTestUtil::GetNextKey, base::Unretained(this))); | 145 base::Bind(&CacheTestUtil::GetNextKey, base::Unretained(this))); |
| 145 } | 146 } |
| 146 } | 147 } |
| OLD | NEW |