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_DRIVE_FILES_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILES_H_ |
6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILES_H_ | 6 #define CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILES_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <set> | 9 #include <set> |
10 #include <string> | 10 #include <string> |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 // The resource id of the parent folder. This piece of information is needed | 110 // The resource id of the parent folder. This piece of information is needed |
111 // to pair files from change feeds with their directory parents withing the | 111 // to pair files from change feeds with their directory parents withing the |
112 // existing file system snapshot (DriveResourceMetadata::resource_map_). | 112 // existing file system snapshot (DriveResourceMetadata::resource_map_). |
113 const std::string& parent_resource_id() const { return parent_resource_id_; } | 113 const std::string& parent_resource_id() const { return parent_resource_id_; } |
114 | 114 |
115 // True if file was deleted. Used only for instances that are generated from | 115 // True if file was deleted. Used only for instances that are generated from |
116 // delta feeds. | 116 // delta feeds. |
117 bool is_deleted() const { return deleted_; } | 117 bool is_deleted() const { return deleted_; } |
118 | 118 |
119 // Returns virtual file path representing this file system entry. This path | 119 // Returns virtual file path representing this file system entry. This path |
120 // corresponds to file path expected by public methods of GDataFileSystem | 120 // corresponds to file path expected by public methods of DriveFileSystem |
121 // class. | 121 // class. |
122 FilePath GetFilePath() const; | 122 FilePath GetFilePath() const; |
123 | 123 |
124 // Sets |base_name_| based on the value of |title_| without name | 124 // Sets |base_name_| based on the value of |title_| without name |
125 // de-duplication (see AddEntry() for details on de-duplication). | 125 // de-duplication (see AddEntry() for details on de-duplication). |
126 virtual void SetBaseNameFromTitle(); | 126 virtual void SetBaseNameFromTitle(); |
127 | 127 |
128 protected: | 128 protected: |
129 // For access to SetParent from AddEntry. | 129 // For access to SetParent from AddEntry. |
130 friend class DriveDirectory; | 130 friend class DriveDirectory; |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
277 // Collection of children. | 277 // Collection of children. |
278 ChildMap child_files_; | 278 ChildMap child_files_; |
279 ChildMap child_directories_; | 279 ChildMap child_directories_; |
280 | 280 |
281 DISALLOW_COPY_AND_ASSIGN(DriveDirectory); | 281 DISALLOW_COPY_AND_ASSIGN(DriveDirectory); |
282 }; | 282 }; |
283 | 283 |
284 } // namespace gdata | 284 } // namespace gdata |
285 | 285 |
286 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILES_H_ | 286 #endif // CHROME_BROWSER_CHROMEOS_GDATA_DRIVE_FILES_H_ |
OLD | NEW |