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 #include "chrome/browser/browsing_data/storage_partition_http_cache_data_remover
.h" | 5 #include "components/browsing_data/storage_partition_http_cache_data_remover.h" |
6 | 6 |
7 #include "content/public/browser/browser_thread.h" | 7 #include "content/public/browser/browser_thread.h" |
8 #include "content/public/browser/storage_partition.h" | 8 #include "content/public/browser/storage_partition.h" |
9 #include "net/disk_cache/disk_cache.h" | 9 #include "net/disk_cache/disk_cache.h" |
10 #include "net/http/http_cache.h" | 10 #include "net/http/http_cache.h" |
11 #include "net/url_request/url_request_context.h" | 11 #include "net/url_request/url_request_context.h" |
12 #include "net/url_request/url_request_context_getter.h" | 12 #include "net/url_request/url_request_context_getter.h" |
13 | 13 |
14 using content::BrowserThread; | 14 using content::BrowserThread; |
15 | 15 |
| 16 namespace browsing_data { |
| 17 |
16 StoragePartitionHttpCacheDataRemover::StoragePartitionHttpCacheDataRemover( | 18 StoragePartitionHttpCacheDataRemover::StoragePartitionHttpCacheDataRemover( |
17 base::Time delete_begin, | 19 base::Time delete_begin, |
18 base::Time delete_end, | 20 base::Time delete_end, |
19 net::URLRequestContextGetter* main_context_getter, | 21 net::URLRequestContextGetter* main_context_getter, |
20 net::URLRequestContextGetter* media_context_getter) | 22 net::URLRequestContextGetter* media_context_getter) |
21 : delete_begin_(delete_begin), | 23 : delete_begin_(delete_begin), |
22 delete_end_(delete_end), | 24 delete_end_(delete_end), |
23 main_context_getter_(main_context_getter), | 25 main_context_getter_(main_context_getter), |
24 media_context_getter_(media_context_getter), | 26 media_context_getter_(media_context_getter), |
25 next_cache_state_(STATE_NONE), | 27 next_cache_state_(STATE_NONE), |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 return; | 149 return; |
148 } | 150 } |
149 default: { | 151 default: { |
150 NOTREACHED() << "bad state"; | 152 NOTREACHED() << "bad state"; |
151 next_cache_state_ = STATE_NONE; // Stop looping. | 153 next_cache_state_ = STATE_NONE; // Stop looping. |
152 return; | 154 return; |
153 } | 155 } |
154 } | 156 } |
155 } | 157 } |
156 } | 158 } |
| 159 |
| 160 } // namespace browsing_data |
OLD | NEW |