OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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 NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_H_ | 5 #ifndef NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_H_ |
6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_H_ | 6 #define NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/callback.h" | 13 #include "base/callback.h" |
14 #include "base/containers/hash_tables.h" | 14 #include "base/containers/hash_tables.h" |
15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
16 #include "base/gtest_prod_util.h" | 16 #include "base/gtest_prod_util.h" |
17 #include "base/memory/ref_counted.h" | 17 #include "base/memory/ref_counted.h" |
18 #include "base/memory/scoped_ptr.h" | 18 #include "base/memory/scoped_ptr.h" |
19 #include "base/memory/weak_ptr.h" | 19 #include "base/memory/weak_ptr.h" |
20 #include "base/single_thread_task_runner.h" | 20 #include "base/single_thread_task_runner.h" |
21 #include "base/threading/thread_checker.h" | 21 #include "base/threading/thread_checker.h" |
22 #include "base/time.h" | 22 #include "base/time/time.h" |
23 #include "base/timer.h" | 23 #include "base/timer/timer.h" |
24 #include "net/base/completion_callback.h" | 24 #include "net/base/completion_callback.h" |
25 #include "net/base/net_export.h" | 25 #include "net/base/net_export.h" |
26 | 26 |
27 #if defined(OS_ANDROID) | 27 #if defined(OS_ANDROID) |
28 #include "base/android/activity_status.h" | 28 #include "base/android/activity_status.h" |
29 #endif | 29 #endif |
30 | 30 |
31 class Pickle; | 31 class Pickle; |
32 class PickleIterator; | 32 class PickleIterator; |
33 | 33 |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
185 // The time in milliseconds for the index to be idle before it gets flushed to | 185 // The time in milliseconds for the index to be idle before it gets flushed to |
186 // the disk. When the app is on foreground the delay is different from the | 186 // the disk. When the app is on foreground the delay is different from the |
187 // background state. | 187 // background state. |
188 int foreground_flush_delay_; | 188 int foreground_flush_delay_; |
189 int background_flush_delay_; | 189 int background_flush_delay_; |
190 }; | 190 }; |
191 | 191 |
192 } // namespace disk_cache | 192 } // namespace disk_cache |
193 | 193 |
194 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_H_ | 194 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_H_ |
OLD | NEW |