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_DRIVE_DRIVE_RESOURCE_METADATA_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 | 62 |
63 // File type on the drive file system can be either a regular file or | 63 // File type on the drive file system can be either a regular file or |
64 // a hosted document. | 64 // a hosted document. |
65 enum DriveFileType { | 65 enum DriveFileType { |
66 REGULAR_FILE, | 66 REGULAR_FILE, |
67 HOSTED_DOCUMENT, | 67 HOSTED_DOCUMENT, |
68 }; | 68 }; |
69 | 69 |
70 // This should be incremented when incompatibility change is made in | 70 // This should be incremented when incompatibility change is made in |
71 // drive.proto. | 71 // drive.proto. |
72 const int32 kProtoVersion = 2; | 72 const int32 kProtoVersion = 3; |
73 | 73 |
74 // Callback similar to FileOperationCallback but with a given |file_path|. | 74 // Callback similar to FileOperationCallback but with a given |file_path|. |
75 // Used for operations that change a file path like moving files. | 75 // Used for operations that change a file path like moving files. |
76 typedef base::Callback<void(DriveFileError error, | 76 typedef base::Callback<void(DriveFileError error, |
77 const base::FilePath& file_path)> | 77 const base::FilePath& file_path)> |
78 FileMoveCallback; | 78 FileMoveCallback; |
79 | 79 |
80 // Used to get entry info from the file system. | 80 // Used to get entry info from the file system. |
81 // If |error| is not DRIVE_FILE_OK, |entry_info| is set to NULL. | 81 // If |error| is not DRIVE_FILE_OK, |entry_info| is set to NULL. |
82 typedef base::Callback<void(DriveFileError error, | 82 typedef base::Callback<void(DriveFileError error, |
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
388 // This should remain the last member so it'll be destroyed first and | 388 // This should remain the last member so it'll be destroyed first and |
389 // invalidate its weak pointers before other members are destroyed. | 389 // invalidate its weak pointers before other members are destroyed. |
390 base::WeakPtrFactory<DriveResourceMetadata> weak_ptr_factory_; | 390 base::WeakPtrFactory<DriveResourceMetadata> weak_ptr_factory_; |
391 | 391 |
392 DISALLOW_COPY_AND_ASSIGN(DriveResourceMetadata); | 392 DISALLOW_COPY_AND_ASSIGN(DriveResourceMetadata); |
393 }; | 393 }; |
394 | 394 |
395 } // namespace drive | 395 } // namespace drive |
396 | 396 |
397 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_ | 397 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_DRIVE_RESOURCE_METADATA_H_ |
OLD | NEW |