| OLD | NEW |
| 1 // Copyright (c) 2015 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2015 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 <algorithm> | 5 #include <algorithm> |
| 6 #include <memory> | 6 #include <memory> |
| 7 #include <set> | 7 #include <set> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/memory/ptr_util.h" |
| 11 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 12 #include "base/synchronization/waitable_event.h" | 13 #include "base/synchronization/waitable_event.h" |
| 13 #include "base/threading/platform_thread.h" | 14 #include "base/threading/platform_thread.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" | 16 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/test/base/in_process_browser_test.h" | 17 #include "chrome/test/base/in_process_browser_test.h" |
| 17 #include "components/browsing_data/content/conditional_cache_deletion_helper.h" | 18 #include "components/browsing_data/content/conditional_cache_deletion_helper.h" |
| 18 #include "content/public/browser/browser_context.h" | 19 #include "content/public/browser/browser_context.h" |
| 19 #include "content/public/browser/browser_thread.h" | 20 #include "content/public/browser/browser_thread.h" |
| 20 #include "content/public/browser/storage_partition.h" | 21 #include "content/public/browser/storage_partition.h" |
| (...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 309 BrowserThread::IO, FROM_HERE, | 310 BrowserThread::IO, FROM_HERE, |
| 310 base::Bind(&ConditionalCacheDeletionHelperBrowserTest::GetRemainingKeys, | 311 base::Bind(&ConditionalCacheDeletionHelperBrowserTest::GetRemainingKeys, |
| 311 base::Unretained(this))); | 312 base::Unretained(this))); |
| 312 WaitForTasksOnIOThread(); | 313 WaitForTasksOnIOThread(); |
| 313 | 314 |
| 314 keys.insert(newer_keys.begin(), newer_keys.end()); | 315 keys.insert(newer_keys.begin(), newer_keys.end()); |
| 315 keys.erase("https://example.com/foo/bar/icon2.png"); | 316 keys.erase("https://example.com/foo/bar/icon2.png"); |
| 316 keys.erase("https://example.com/foo/bar/icon3.png"); | 317 keys.erase("https://example.com/foo/bar/icon3.png"); |
| 317 CompareRemainingKeys(keys); | 318 CompareRemainingKeys(keys); |
| 318 } | 319 } |
| OLD | NEW |