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_RESOURCE_ENTRY_CONVERSION_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_ENTRY_CONVERSION_H_ |
6 #define CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_ENTRY_CONVERSION_H_ | 6 #define CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_ENTRY_CONVERSION_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/files/file.h" | 10 #include "base/files/file.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 // 2) Entries with multiple parents are allowed on drive.google.com. For these | 32 // 2) Entries with multiple parents are allowed on drive.google.com. For these |
33 // entries, the first parent is chosen. | 33 // entries, the first parent is chosen. |
34 bool ConvertToResourceEntry(const google_apis::ResourceEntry& input, | 34 bool ConvertToResourceEntry(const google_apis::ResourceEntry& input, |
35 ResourceEntry* out_entry, | 35 ResourceEntry* out_entry, |
36 std::string* out_parent_resource_id); | 36 std::string* out_parent_resource_id); |
37 | 37 |
38 // Converts the resource entry to the platform file info. | 38 // Converts the resource entry to the platform file info. |
39 void ConvertResourceEntryToFileInfo(const ResourceEntry& entry, | 39 void ConvertResourceEntryToFileInfo(const ResourceEntry& entry, |
40 base::File::Info* file_info); | 40 base::File::Info* file_info); |
41 | 41 |
42 // Converts the platform file info and sets it to the .file_info field of | |
43 // the resource entry. | |
44 void SetPlatformFileInfoToResourceEntry(const base::File::Info& file_info, | |
45 ResourceEntry* entry); | |
46 | |
47 } // namespace drive | 42 } // namespace drive |
48 | 43 |
49 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_ENTRY_CONVERSION_H_ | 44 #endif // CHROME_BROWSER_CHROMEOS_DRIVE_RESOURCE_ENTRY_CONVERSION_H_ |
OLD | NEW |