Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(549)

Side by Side Diff: webkit/fileapi/syncable/local_file_change_tracker.h

Issue 11103031: webkit: Merge blob and fileapi into one build target 'storage' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Leave *.gypi files in blob and fileapi Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_CHANGE_TRACKER_H_ 5 #ifndef WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_CHANGE_TRACKER_H_
6 #define WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_CHANGE_TRACKER_H_ 6 #define WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_CHANGE_TRACKER_H_
7 7
8 #include <map> 8 #include <map>
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/compiler_specific.h" 13 #include "base/compiler_specific.h"
14 #include "base/file_path.h" 14 #include "base/file_path.h"
15 #include "base/memory/ref_counted.h" 15 #include "base/memory/ref_counted.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "webkit/fileapi/file_observers.h" 17 #include "webkit/fileapi/file_observers.h"
18 #include "webkit/fileapi/file_system_url.h" 18 #include "webkit/fileapi/file_system_url.h"
19 #include "webkit/fileapi/fileapi_export.h"
20 #include "webkit/fileapi/syncable/file_change.h" 19 #include "webkit/fileapi/syncable/file_change.h"
21 #include "webkit/fileapi/syncable/sync_status_code.h" 20 #include "webkit/fileapi/syncable/sync_status_code.h"
21 #include "webkit/storage/webkit_storage_export.h"
22 22
23 namespace base { 23 namespace base {
24 class SequencedTaskRunner; 24 class SequencedTaskRunner;
25 } 25 }
26 26
27 namespace fileapi { 27 namespace fileapi {
28 28
29 class FileSystemContext; 29 class FileSystemContext;
30 30
31 // Tracks local file changes for cloud-backed file systems. 31 // Tracks local file changes for cloud-backed file systems.
32 // All methods must be called on the file_task_runner given to the constructor. 32 // All methods must be called on the file_task_runner given to the constructor.
33 // Owned by FileSystemContext. 33 // Owned by FileSystemContext.
34 class FILEAPI_EXPORT LocalFileChangeTracker 34 class WEBKIT_STORAGE_EXPORT LocalFileChangeTracker
35 : public FileUpdateObserver, 35 : public FileUpdateObserver,
36 public FileChangeObserver { 36 public FileChangeObserver {
37 public: 37 public:
38 typedef std::map<FileSystemURL, FileChangeList, FileSystemURL::Comparator> 38 typedef std::map<FileSystemURL, FileChangeList, FileSystemURL::Comparator>
39 FileChangeMap; 39 FileChangeMap;
40 40
41 // |file_task_runner| must be the one where the observee file operations run. 41 // |file_task_runner| must be the one where the observee file operations run.
42 // (So that we can make sure DB operations are done before actual update 42 // (So that we can make sure DB operations are done before actual update
43 // happens) 43 // happens)
44 LocalFileChangeTracker(const FilePath& base_path, 44 LocalFileChangeTracker(const FilePath& base_path,
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 FileChangeMap changes_; 94 FileChangeMap changes_;
95 95
96 scoped_ptr<TrackerDB> tracker_db_; 96 scoped_ptr<TrackerDB> tracker_db_;
97 97
98 DISALLOW_COPY_AND_ASSIGN(LocalFileChangeTracker); 98 DISALLOW_COPY_AND_ASSIGN(LocalFileChangeTracker);
99 }; 99 };
100 100
101 } // namespace fileapi 101 } // namespace fileapi
102 102
103 #endif // WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_CHANGE_TRACKER_H_ 103 #endif // WEBKIT_FILEAPI_SYNCABLE_LOCAL_FILE_CHANGE_TRACKER_H_
OLDNEW
« no previous file with comments | « webkit/fileapi/syncable/file_change.h ('k') | webkit/fileapi/syncable/local_file_sync_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698