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 <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
142 void EvictionDone(int result); | 142 void EvictionDone(int result); |
143 | 143 |
144 void PostponeWritingToDisk(); | 144 void PostponeWritingToDisk(); |
145 | 145 |
146 void UpdateEntryIteratorSize(EntrySet::iterator* it, int entry_size); | 146 void UpdateEntryIteratorSize(EntrySet::iterator* it, int entry_size); |
147 | 147 |
148 // Must run on IO Thread. | 148 // Must run on IO Thread. |
149 void MergeInitializingSet(scoped_ptr<SimpleIndexLoadResult> load_result); | 149 void MergeInitializingSet(scoped_ptr<SimpleIndexLoadResult> load_result); |
150 | 150 |
151 #if defined(OS_ANDROID) | 151 #if defined(OS_ANDROID) |
152 void OnActivityStateChange(base::android::ActivityState state); | 152 void OnApplicationStateChange(base::android::ApplicationState state); |
153 | 153 |
154 scoped_ptr<base::android::ActivityStatus::Listener> activity_status_listener_; | 154 scoped_ptr<base::android::ActivityStatus::Listener> activity_status_listener_; |
155 #endif | 155 #endif |
156 | 156 |
157 // The owner of |this| must ensure the |delegate_| outlives |this|. | 157 // The owner of |this| must ensure the |delegate_| outlives |this|. |
158 SimpleIndexDelegate* delegate_; | 158 SimpleIndexDelegate* delegate_; |
159 | 159 |
160 EntrySet entries_set_; | 160 EntrySet entries_set_; |
161 | 161 |
162 const net::CacheType cache_type_; | 162 const net::CacheType cache_type_; |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
199 // The time in milliseconds for the index to be idle before it gets flushed to | 199 // The time in milliseconds for the index to be idle before it gets flushed to |
200 // the disk. When the app is on foreground the delay is different from the | 200 // the disk. When the app is on foreground the delay is different from the |
201 // background state. | 201 // background state. |
202 int foreground_flush_delay_; | 202 int foreground_flush_delay_; |
203 int background_flush_delay_; | 203 int background_flush_delay_; |
204 }; | 204 }; |
205 | 205 |
206 } // namespace disk_cache | 206 } // namespace disk_cache |
207 | 207 |
208 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_H_ | 208 #endif // NET_DISK_CACHE_SIMPLE_SIMPLE_INDEX_H_ |
OLD | NEW |