OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/sync_file_system/sync_file_metadata.h" | 5 #include "chrome/browser/sync_file_system/sync_file_metadata.h" |
6 | 6 |
7 using sync_file_system::SyncFileType; | 7 using sync_file_system::SyncFileType; |
8 | 8 |
9 namespace sync_file_system { | 9 namespace sync_file_system { |
10 | 10 |
11 SyncFileMetadata::SyncFileMetadata() | 11 SyncFileMetadata::SyncFileMetadata() |
12 : file_type(sync_file_system::SYNC_FILE_TYPE_UNKNOWN), | 12 : file_type(sync_file_system::SYNC_FILE_TYPE_UNKNOWN), |
13 size(-1) { | 13 size(-1) { |
14 } | 14 } |
15 | 15 |
16 SyncFileMetadata::SyncFileMetadata(SyncFileType file_type, | 16 SyncFileMetadata::SyncFileMetadata(SyncFileType file_type, |
17 int64_t size, | 17 int64_t size, |
18 const base::Time& last_modified) | 18 const base::Time& last_modified) |
19 : file_type(file_type), size(size), last_modified(last_modified) {} | 19 : file_type(file_type), size(size), last_modified(last_modified) {} |
20 | 20 |
21 SyncFileMetadata::~SyncFileMetadata() {} | 21 SyncFileMetadata::~SyncFileMetadata() {} |
22 | 22 |
23 bool SyncFileMetadata::operator==(const SyncFileMetadata& that) const { | 23 bool SyncFileMetadata::operator==(const SyncFileMetadata& that) const { |
24 return file_type == that.file_type && | 24 return file_type == that.file_type && |
25 size == that.size && | 25 size == that.size && |
26 last_modified == that.last_modified; | 26 last_modified == that.last_modified; |
27 } | 27 } |
28 | 28 |
29 LocalFileSyncInfo::LocalFileSyncInfo() {} | 29 LocalFileSyncInfo::LocalFileSyncInfo() {} |
| 30 LocalFileSyncInfo::LocalFileSyncInfo(const LocalFileSyncInfo& other) = default; |
30 LocalFileSyncInfo::~LocalFileSyncInfo() {} | 31 LocalFileSyncInfo::~LocalFileSyncInfo() {} |
31 | 32 |
32 } // namespace sync_file_system | 33 } // namespace sync_file_system |
OLD | NEW |