| 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 COMPONENTS_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_H_ | 5 #ifndef COMPONENTS_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_H_ |
| 6 #define COMPONENTS_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 <stdint.h> |
| 9 |
| 8 #include "base/callback.h" | 10 #include "base/callback.h" |
| 11 #include "base/macros.h" |
| 9 #include "base/sequenced_task_runner_helpers.h" | 12 #include "base/sequenced_task_runner_helpers.h" |
| 10 #include "base/time/time.h" | 13 #include "base/time/time.h" |
| 11 #include "net/base/completion_callback.h" | 14 #include "net/base/completion_callback.h" |
| 12 | 15 |
| 13 namespace content { | 16 namespace content { |
| 14 class StoragePartition; | 17 class StoragePartition; |
| 15 } | 18 } |
| 16 | 19 |
| 17 namespace disk_cache { | 20 namespace disk_cache { |
| 18 class Backend; | 21 class Backend; |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 81 base::Closure done_callback_; | 84 base::Closure done_callback_; |
| 82 net::Int64CompletionCallback result_callback_; | 85 net::Int64CompletionCallback result_callback_; |
| 83 | 86 |
| 84 // IO. | 87 // IO. |
| 85 int next_cache_state_; | 88 int next_cache_state_; |
| 86 disk_cache::Backend* cache_; | 89 disk_cache::Backend* cache_; |
| 87 | 90 |
| 88 // Stores the cache size computation result before it can be returned | 91 // Stores the cache size computation result before it can be returned |
| 89 // via a callback. This is either the sum of size of the the two cache | 92 // via a callback. This is either the sum of size of the the two cache |
| 90 // backends, or an error code if the calculation failed. | 93 // backends, or an error code if the calculation failed. |
| 91 int64 calculation_result_; | 94 int64_t calculation_result_; |
| 92 | 95 |
| 93 DISALLOW_COPY_AND_ASSIGN(StoragePartitionHttpCacheDataRemover); | 96 DISALLOW_COPY_AND_ASSIGN(StoragePartitionHttpCacheDataRemover); |
| 94 }; | 97 }; |
| 95 | 98 |
| 96 } // namespace browsing_data | 99 } // namespace browsing_data |
| 97 | 100 |
| 98 #endif // COMPONENTS_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_H_ | 101 #endif // COMPONENTS_BROWSING_DATA_STORAGE_PARTITION_HTTP_CACHE_DATA_REMOVER_H_ |
| OLD | NEW |