OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ | 5 #ifndef SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ |
6 #define SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ | 6 #define SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 DirectoryUpdateHandler(syncable::Directory* dir, | 45 DirectoryUpdateHandler(syncable::Directory* dir, |
46 ModelType type, | 46 ModelType type, |
47 scoped_refptr<ModelSafeWorker> worker); | 47 scoped_refptr<ModelSafeWorker> worker); |
48 virtual ~DirectoryUpdateHandler(); | 48 virtual ~DirectoryUpdateHandler(); |
49 | 49 |
50 // UpdateHandler implementation. | 50 // UpdateHandler implementation. |
51 virtual void GetDownloadProgress( | 51 virtual void GetDownloadProgress( |
52 sync_pb::DataTypeProgressMarker* progress_marker) const OVERRIDE; | 52 sync_pb::DataTypeProgressMarker* progress_marker) const OVERRIDE; |
53 virtual void GetDataTypeContext(sync_pb::DataTypeContext* context) const | 53 virtual void GetDataTypeContext(sync_pb::DataTypeContext* context) const |
54 OVERRIDE; | 54 OVERRIDE; |
55 virtual void ProcessGetUpdatesResponse( | 55 virtual SyncerError ProcessGetUpdatesResponse( |
56 const sync_pb::DataTypeProgressMarker& progress_marker, | 56 const sync_pb::DataTypeProgressMarker& progress_marker, |
57 const sync_pb::DataTypeContext& mutated_context, | 57 const sync_pb::DataTypeContext& mutated_context, |
58 const SyncEntityList& applicable_updates, | 58 const SyncEntityList& applicable_updates, |
59 sessions::StatusController* status) OVERRIDE; | 59 sessions::StatusController* status) OVERRIDE; |
60 virtual void ApplyUpdates(sessions::StatusController* status) OVERRIDE; | 60 virtual void ApplyUpdates(sessions::StatusController* status) OVERRIDE; |
61 virtual void PassiveApplyUpdates(sessions::StatusController* status) OVERRIDE; | 61 virtual void PassiveApplyUpdates(sessions::StatusController* status) OVERRIDE; |
62 | 62 |
63 private: | 63 private: |
64 friend class DirectoryUpdateHandlerApplyUpdateTest; | 64 friend class DirectoryUpdateHandlerApplyUpdateTest; |
65 friend class DirectoryUpdateHandlerProcessUpdateTest; | 65 friend class DirectoryUpdateHandlerProcessUpdateTest; |
(...skipping 29 matching lines...) Expand all Loading... |
95 scoped_refptr<ModelSafeWorker> worker_; | 95 scoped_refptr<ModelSafeWorker> worker_; |
96 | 96 |
97 scoped_ptr<sync_pb::GarbageCollectionDirective> cached_gc_directive_; | 97 scoped_ptr<sync_pb::GarbageCollectionDirective> cached_gc_directive_; |
98 | 98 |
99 DISALLOW_COPY_AND_ASSIGN(DirectoryUpdateHandler); | 99 DISALLOW_COPY_AND_ASSIGN(DirectoryUpdateHandler); |
100 }; | 100 }; |
101 | 101 |
102 } // namespace syncer | 102 } // namespace syncer |
103 | 103 |
104 #endif // SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ | 104 #endif // SYNC_ENGINE_DIRECTORY_UPDATE_HANDLER_H_ |
OLD | NEW |