Index: net/disk_cache/simple/simple_index.h |
diff --git a/net/disk_cache/simple/simple_index.h b/net/disk_cache/simple/simple_index.h |
index 4f3c4046daa7c3f2989f3752d8767272d8ea86ef..d6ed5757f9f9e4fe6ae3351b7acc9a4d1e293fa9 100644 |
--- a/net/disk_cache/simple/simple_index.h |
+++ b/net/disk_cache/simple/simple_index.h |
@@ -22,6 +22,10 @@ |
#include "net/base/completion_callback.h" |
#include "net/base/net_export.h" |
+#if defined(OS_ANDROID) |
+#include "net/android/simple_cache_activity_status_notifier.h" |
+#endif |
+ |
class Pickle; |
class PickleIterator; |
@@ -142,6 +146,8 @@ class NET_EXPORT_PRIVATE SimpleIndex |
void MergeInitializingSet(scoped_ptr<EntrySet> index_file_entries, |
bool force_index_flush); |
+ void ActivityStatusChanged(int activity_status); |
gavinp
2013/04/19 15:58:55
I'm not a fan of moving the activity_status around
felipeg
2013/04/19 17:10:15
lets do the enum
|
+ |
EntrySet entries_set_; |
uint64 cache_size_; // Total cache storage size in bytes. |
@@ -162,11 +168,15 @@ class NET_EXPORT_PRIVATE SimpleIndex |
// Timestamp of the last time we wrote the index to disk. |
// PostponeWritingToDisk() may give up postponing and allow the write if it |
// has been a while since last time we wrote. |
- base::Time last_write_to_disk_; |
base::OneShotTimer<SimpleIndex> write_to_disk_timer_; |
typedef std::list<net::CompletionCallback> CallbackList; |
CallbackList to_run_when_initialized_; |
+ |
+#if defined(OS_ANDROID) |
+ net::SimpleCacheActivityStatusNotifier activity_status_notifier_; |
+#endif |
+ bool app_on_background_; |
}; |
} // namespace disk_cache |