Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(73)

Side by Side Diff: content/browser/browsing_data/storage_partition_http_cache_data_remover.h

Issue 2757923002: Move StoragePartitionHttpCacheDataRemover to content/ (Closed)
Patch Set: Rebase. Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_BROWSING_DATA_CONTENT_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOV ER_H_ 5 #ifndef CONTENT_BROWSER_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_ H_
6 #define COMPONENTS_BROWSING_DATA_CONTENT_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOV ER_H_ 6 #define CONTENT_BROWSER_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_ H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/sequenced_task_runner_helpers.h" 12 #include "base/sequenced_task_runner_helpers.h"
13 #include "base/time/time.h" 13 #include "base/time/time.h"
14 #include "net/base/completion_callback.h" 14 #include "net/base/completion_callback.h"
15 #include "url/gurl.h" 15 #include "url/gurl.h"
16 16
17 namespace content {
18 class StoragePartition;
19 }
20
21 namespace disk_cache { 17 namespace disk_cache {
22 class Backend; 18 class Backend;
23 } 19 }
24 20
25 namespace net { 21 namespace net {
26 class URLRequestContextGetter; 22 class URLRequestContextGetter;
27 } 23 }
28 24
29 namespace browsing_data { 25 namespace content {
26
27 class StoragePartition;
30 28
31 // Helper to remove http cache data from a StoragePartition. 29 // Helper to remove http cache data from a StoragePartition.
32 class StoragePartitionHttpCacheDataRemover { 30 class StoragePartitionHttpCacheDataRemover {
33 public: 31 public:
34 // Creates a StoragePartitionHttpCacheDataRemover that deletes cache entries 32 // Creates a StoragePartitionHttpCacheDataRemover that deletes cache entries
35 // in the time range between |delete_begin| (inclusively) and |delete_end| 33 // in the time range between |delete_begin| (inclusively) and |delete_end|
36 // (exclusively). 34 // (exclusively).
37 static StoragePartitionHttpCacheDataRemover* CreateForRange( 35 static StoragePartitionHttpCacheDataRemover* CreateForRange(
38 content::StoragePartition* storage_partition, 36 content::StoragePartition* storage_partition,
39 base::Time delete_begin, 37 base::Time delete_begin,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 87
90 base::Closure done_callback_; 88 base::Closure done_callback_;
91 89
92 // IO. 90 // IO.
93 int next_cache_state_; 91 int next_cache_state_;
94 disk_cache::Backend* cache_; 92 disk_cache::Backend* cache_;
95 93
96 DISALLOW_COPY_AND_ASSIGN(StoragePartitionHttpCacheDataRemover); 94 DISALLOW_COPY_AND_ASSIGN(StoragePartitionHttpCacheDataRemover);
97 }; 95 };
98 96
99 } // namespace browsing_data 97 } // namespace content
100 98
101 #endif // COMPONENTS_BROWSING_DATA_CONTENT_STORAGE_PARTITION_HTTP_CACHE_DATA_RE MOVER_H_ 99 #endif // CONTENT_BROWSER_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOV ER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698