Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(225)

Side by Side Diff: chrome/browser/chromeos/drive/resource_entry_conversion.h

Issue 304183005: drive: Always use last_modified stored in ResourceEntry (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698