OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 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 #ifndef CHROME_BROWSER_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_H
_ | 5 #ifndef COMPONENTS_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_H_ |
6 #define CHROME_BROWSER_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_H
_ | 6 #define COMPONENTS_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/sequenced_task_runner_helpers.h" | 9 #include "base/sequenced_task_runner_helpers.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
11 | 11 |
12 namespace content { | 12 namespace content { |
13 class StoragePartition; | 13 class StoragePartition; |
14 } | 14 } |
15 | 15 |
16 namespace disk_cache { | 16 namespace disk_cache { |
17 class Backend; | 17 class Backend; |
18 } | 18 } |
19 | 19 |
20 namespace net { | 20 namespace net { |
21 class URLRequestContextGetter; | 21 class URLRequestContextGetter; |
22 } | 22 } |
23 | 23 |
| 24 namespace browsing_data { |
| 25 |
24 // Helper to remove http cache data from a StoragePartition. | 26 // Helper to remove http cache data from a StoragePartition. |
25 class StoragePartitionHttpCacheDataRemover { | 27 class StoragePartitionHttpCacheDataRemover { |
26 public: | 28 public: |
27 static StoragePartitionHttpCacheDataRemover* CreateForRange( | 29 static StoragePartitionHttpCacheDataRemover* CreateForRange( |
28 content::StoragePartition* storage_partition, | 30 content::StoragePartition* storage_partition, |
29 base::Time delete_begin, | 31 base::Time delete_begin, |
30 base::Time delete_end); | 32 base::Time delete_end); |
31 | 33 |
32 // Calls |done_callback| upon completion and also destroys itself. | 34 // Calls |done_callback| upon completion and also destroys itself. |
33 void Remove(const base::Closure& done_callback); | 35 void Remove(const base::Closure& done_callback); |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 | 70 |
69 base::Closure done_callback_; | 71 base::Closure done_callback_; |
70 | 72 |
71 // IO. | 73 // IO. |
72 int next_cache_state_; | 74 int next_cache_state_; |
73 disk_cache::Backend* cache_; | 75 disk_cache::Backend* cache_; |
74 | 76 |
75 DISALLOW_COPY_AND_ASSIGN(StoragePartitionHttpCacheDataRemover); | 77 DISALLOW_COPY_AND_ASSIGN(StoragePartitionHttpCacheDataRemover); |
76 }; | 78 }; |
77 | 79 |
78 #endif // CHROME_BROWSER_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVE
R_H_ | 80 } // namespace browsing_data |
| 81 |
| 82 #endif // COMPONENTS_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_H_ |
OLD | NEW |