OLD | NEW |
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 CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_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/callback.h" | 12 #include "base/callback.h" |
13 #include "base/file_path.h" | 13 #include "base/gtest_prod_util.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/singleton.h" |
15 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
16 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" | 17 #include "base/platform_file.h" |
17 | 18 #include "base/synchronization/lock.h" |
18 namespace base { | 19 #include "chrome/browser/chromeos/gdata/gdata_files.h" |
19 class SequencedTaskRunner; | 20 #include "chrome/browser/chromeos/gdata/gdata_uploader.h" |
20 } | 21 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" |
| 22 #include "chrome/browser/profiles/profile_keyed_service.h" |
| 23 #include "chrome/browser/profiles/profile_keyed_service_factory.h" |
21 | 24 |
22 namespace gdata { | 25 namespace gdata { |
23 | 26 |
24 struct CreateDBParams; | |
25 class DocumentEntry; | |
26 class GDataEntry; | |
27 class GDataEntryProto; | |
28 class GDataFile; | |
29 class GDataDirectory; | |
30 class ResourceMetadataDB; | |
31 | |
32 typedef std::vector<GDataEntryProto> GDataEntryProtoVector; | |
33 | |
34 // File type on the gdata file system can be either a regular file or | |
35 // a hosted document. | |
36 enum GDataFileType { | |
37 REGULAR_FILE, | |
38 HOSTED_DOCUMENT, | |
39 }; | |
40 | |
41 // The root directory content origin. | 27 // The root directory content origin. |
42 enum ContentOrigin { | 28 enum ContentOrigin { |
43 UNINITIALIZED, | 29 UNINITIALIZED, |
44 // Content is currently loading from somewhere. Needs to wait. | 30 // Content is currently loading from somewhere. Needs to wait. |
45 INITIALIZING, | 31 INITIALIZING, |
46 // Content is initialized, but during refreshing. | 32 // Content is initialized, but during refreshing. |
47 REFRESHING, | 33 REFRESHING, |
48 // Content is initialized from disk cache. | 34 // Content is initialized from disk cache. |
49 FROM_CACHE, | 35 FROM_CACHE, |
50 // Content is initialized from the direct server response. | 36 // Content is initialized from the direct server response. |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 // invalidate its weak pointers before other members are destroyed. | 291 // invalidate its weak pointers before other members are destroyed. |
306 base::WeakPtrFactory<GDataDirectoryService> weak_ptr_factory_; | 292 base::WeakPtrFactory<GDataDirectoryService> weak_ptr_factory_; |
307 | 293 |
308 DISALLOW_COPY_AND_ASSIGN(GDataDirectoryService); | 294 DISALLOW_COPY_AND_ASSIGN(GDataDirectoryService); |
309 }; | 295 }; |
310 | 296 |
311 } // namespace gdata | 297 } // namespace gdata |
312 | 298 |
313 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_ | 299 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_ |
314 | 300 |
OLD | NEW |