OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/fake_remote_change_processor.h" | 5 #include "chrome/browser/sync_file_system/fake_remote_change_processor.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
9 #include "base/location.h" | 9 #include "base/location.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
11 #include "webkit/browser/fileapi/file_system_url.h" | 11 #include "webkit/browser/fileapi/file_system_url.h" |
12 #include "webkit/fileapi/syncable/file_change.h" | 12 #include "webkit/browser/fileapi/syncable/file_change.h" |
13 #include "webkit/fileapi/syncable/sync_file_metadata.h" | 13 #include "webkit/browser/fileapi/syncable/sync_file_metadata.h" |
14 | 14 |
15 namespace sync_file_system { | 15 namespace sync_file_system { |
16 | 16 |
17 FakeRemoteChangeProcessor::FakeRemoteChangeProcessor() { | 17 FakeRemoteChangeProcessor::FakeRemoteChangeProcessor() { |
18 } | 18 } |
19 | 19 |
20 FakeRemoteChangeProcessor::~FakeRemoteChangeProcessor() { | 20 FakeRemoteChangeProcessor::~FakeRemoteChangeProcessor() { |
21 } | 21 } |
22 | 22 |
23 void FakeRemoteChangeProcessor::PrepareForProcessRemoteChange( | 23 void FakeRemoteChangeProcessor::PrepareForProcessRemoteChange( |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 base::MessageLoopProxy::current()->PostTask( | 66 base::MessageLoopProxy::current()->PostTask( |
67 FROM_HERE, base::Bind(callback, SYNC_STATUS_OK)); | 67 FROM_HERE, base::Bind(callback, SYNC_STATUS_OK)); |
68 } | 68 } |
69 | 69 |
70 const FakeRemoteChangeProcessor::URLToFileChangesMap& | 70 const FakeRemoteChangeProcessor::URLToFileChangesMap& |
71 FakeRemoteChangeProcessor::GetAppliedRemoteChanges() const { | 71 FakeRemoteChangeProcessor::GetAppliedRemoteChanges() const { |
72 return applied_changes_; | 72 return applied_changes_; |
73 } | 73 } |
74 | 74 |
75 } // namespace sync_file_system | 75 } // namespace sync_file_system |
OLD | NEW |