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/gtest_prod_util.h" | 13 #include "base/file_path.h" |
14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
15 #include "base/memory/singleton.h" | |
16 #include "base/memory/weak_ptr.h" | 15 #include "base/memory/weak_ptr.h" |
17 #include "base/platform_file.h" | 16 #include "chrome/browser/chromeos/gdata/gdata_errorcode.h" |
18 #include "base/synchronization/lock.h" | 17 |
19 #include "chrome/browser/chromeos/gdata/gdata_files.h" | 18 namespace base { |
20 #include "chrome/browser/chromeos/gdata/gdata_uploader.h" | 19 class SequencedTaskRunner; |
21 #include "chrome/browser/chromeos/gdata/gdata_wapi_parser.h" | 20 } |
22 #include "chrome/browser/profiles/profile_keyed_service.h" | |
23 #include "chrome/browser/profiles/profile_keyed_service_factory.h" | |
24 | 21 |
25 namespace gdata { | 22 namespace gdata { |
26 | 23 |
| 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 |
27 // The root directory content origin. | 41 // The root directory content origin. |
28 enum ContentOrigin { | 42 enum ContentOrigin { |
29 UNINITIALIZED, | 43 UNINITIALIZED, |
30 // Content is currently loading from somewhere. Needs to wait. | 44 // Content is currently loading from somewhere. Needs to wait. |
31 INITIALIZING, | 45 INITIALIZING, |
32 // Content is initialized, but during refreshing. | 46 // Content is initialized, but during refreshing. |
33 REFRESHING, | 47 REFRESHING, |
34 // Content is initialized from disk cache. | 48 // Content is initialized from disk cache. |
35 FROM_CACHE, | 49 FROM_CACHE, |
36 // Content is initialized from the direct server response. | 50 // Content is initialized from the direct server response. |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
291 // invalidate its weak pointers before other members are destroyed. | 305 // invalidate its weak pointers before other members are destroyed. |
292 base::WeakPtrFactory<GDataDirectoryService> weak_ptr_factory_; | 306 base::WeakPtrFactory<GDataDirectoryService> weak_ptr_factory_; |
293 | 307 |
294 DISALLOW_COPY_AND_ASSIGN(GDataDirectoryService); | 308 DISALLOW_COPY_AND_ASSIGN(GDataDirectoryService); |
295 }; | 309 }; |
296 | 310 |
297 } // namespace gdata | 311 } // namespace gdata |
298 | 312 |
299 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_ | 313 #endif // CHROME_BROWSER_CHROMEOS_GDATA_GDATA_DIRECTORY_SERVICE_H_ |
300 | 314 |
OLD | NEW |