Index: webkit/fileapi/syncable/local_file_change_tracker.h |
diff --git a/webkit/fileapi/syncable/local_file_change_tracker.h b/webkit/fileapi/syncable/local_file_change_tracker.h |
index 14e1bf2f2d77c8a4c76c75d80ed1cb178b7a42d8..262fa86077accc5bbe9b55e930e920d8727fe27e 100644 |
--- a/webkit/fileapi/syncable/local_file_change_tracker.h |
+++ b/webkit/fileapi/syncable/local_file_change_tracker.h |
@@ -6,6 +6,7 @@ |
#define WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_CHANGE_TRACKER_H_ |
#include <map> |
+#include <string> |
#include <vector> |
#include "base/basictypes.h" |
@@ -41,6 +42,7 @@ class FILEAPI_EXPORT LocalFileChangeTracker |
// (So that we can make sure DB operations are done before actual update |
// happens) |
LocalFileChangeTracker(LocalFileSyncStatus* sync_status, |
+ const FilePath& profile_path, |
base::SequencedTaskRunner* file_task_runner); |
virtual ~LocalFileChangeTracker(); |
@@ -75,12 +77,18 @@ class FILEAPI_EXPORT LocalFileChangeTracker |
void CollectLastDirtyChanges(FileChangeMap* changes); |
private: |
+ class TrackerDB; |
+ friend class LocalFileChangeTrackerTest; |
+ |
void RecordChange(const FileSystemURL& url, const FileChange& change); |
// Database related methods. |
void MarkDirtyOnDatabase(const FileSystemURL& url); |
void ClearDirtyOnDatabase(const FileSystemURL& url); |
+ std::string SerializeExternalFileSystemURL(const FileSystemURL& url); |
+ FileSystemURL DeserializeExternalFileSystemURL(const std::string& url); |
+ |
// Not owned; this must have the same lifetime with us (both owned |
// by FileSystemContext). |
LocalFileSyncStatus *sync_status_; |
@@ -89,6 +97,8 @@ class FILEAPI_EXPORT LocalFileChangeTracker |
FileChangeMap changes_; |
+ scoped_ptr<TrackerDB> tracker_db_; |
+ |
DISALLOW_COPY_AND_ASSIGN(LocalFileChangeTracker); |
}; |