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 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" | 5 #include "chrome/browser/chromeos/drive/resource_entry_conversion.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/platform_file.h" | |
12 #include "base/time/time.h" | 11 #include "base/time/time.h" |
13 #include "chrome/browser/chromeos/drive/drive.pb.h" | 12 #include "chrome/browser/chromeos/drive/drive.pb.h" |
14 #include "chrome/browser/chromeos/drive/file_system_util.h" | 13 #include "chrome/browser/chromeos/drive/file_system_util.h" |
15 #include "chrome/browser/drive/drive_api_util.h" | 14 #include "chrome/browser/drive/drive_api_util.h" |
16 #include "google_apis/drive/gdata_wapi_parser.h" | 15 #include "google_apis/drive/gdata_wapi_parser.h" |
17 | 16 |
18 namespace drive { | 17 namespace drive { |
19 | 18 |
20 namespace { | 19 namespace { |
21 | 20 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
152 PlatformFileInfoProto* entry_file_info = entry->mutable_file_info(); | 151 PlatformFileInfoProto* entry_file_info = entry->mutable_file_info(); |
153 entry_file_info->set_size(file_info.size); | 152 entry_file_info->set_size(file_info.size); |
154 entry_file_info->set_is_directory(file_info.is_directory); | 153 entry_file_info->set_is_directory(file_info.is_directory); |
155 entry_file_info->set_is_symbolic_link(file_info.is_symbolic_link); | 154 entry_file_info->set_is_symbolic_link(file_info.is_symbolic_link); |
156 entry_file_info->set_last_modified(file_info.last_modified.ToInternalValue()); | 155 entry_file_info->set_last_modified(file_info.last_modified.ToInternalValue()); |
157 entry_file_info->set_last_accessed(file_info.last_accessed.ToInternalValue()); | 156 entry_file_info->set_last_accessed(file_info.last_accessed.ToInternalValue()); |
158 entry_file_info->set_creation_time(file_info.creation_time.ToInternalValue()); | 157 entry_file_info->set_creation_time(file_info.creation_time.ToInternalValue()); |
159 } | 158 } |
160 | 159 |
161 } // namespace drive | 160 } // namespace drive |
OLD | NEW |