ExtensionSyncService: listen for relevant changes instead of being explicitly called...
[chromium-blink-merge.git] / chrome / browser / sync_file_system / sync_file_metadata.cc
blob42b57350da614c8481a74a240c17d16eed81c894
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
3 // found in the LICENSE file.
5 #include "chrome/browser/sync_file_system/sync_file_metadata.h"
7 using sync_file_system::SyncFileType;
9 namespace sync_file_system {
11 SyncFileMetadata::SyncFileMetadata()
12 : file_type(sync_file_system::SYNC_FILE_TYPE_UNKNOWN),
13 size(-1) {
16 SyncFileMetadata::SyncFileMetadata(
17 SyncFileType file_type,
18 int64 size,
19 const base::Time& last_modified)
20 : file_type(file_type),
21 size(size),
22 last_modified(last_modified) {
25 SyncFileMetadata::~SyncFileMetadata() {}
27 bool SyncFileMetadata::operator==(const SyncFileMetadata& that) const {
28 return file_type == that.file_type &&
29 size == that.size &&
30 last_modified == that.last_modified;
33 LocalFileSyncInfo::LocalFileSyncInfo() {}
34 LocalFileSyncInfo::~LocalFileSyncInfo() {}
36 } // namespace sync_file_system