Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Side by Side Diff: components/sync/engine_impl/directory_update_handler.h

Issue 2240613002: [Sync] Convert sync to a static library. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Try getting rid of sync_core source set. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_UPDATE_HANDLER_H_ 5 #ifndef COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_UPDATE_HANDLER_H_
6 #define COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_UPDATE_HANDLER_H_ 6 #define COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_UPDATE_HANDLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
11 #include "base/macros.h" 11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "components/sync/base/model_type.h" 13 #include "components/sync/base/model_type.h"
14 #include "components/sync/base/sync_export.h"
15 #include "components/sync/base/syncer_error.h" 14 #include "components/sync/base/syncer_error.h"
16 #include "components/sync/engine_impl/process_updates_util.h" 15 #include "components/sync/engine_impl/process_updates_util.h"
17 #include "components/sync/engine_impl/update_handler.h" 16 #include "components/sync/engine_impl/update_handler.h"
18 17
19 namespace sync_pb { 18 namespace sync_pb {
20 class DataTypeProgressMarker; 19 class DataTypeProgressMarker;
21 class GarbageCollectionDirective; 20 class GarbageCollectionDirective;
22 class GetUpdatesResponse; 21 class GetUpdatesResponse;
23 } 22 }
24 23
25 namespace syncer { 24 namespace syncer {
26 25
27 namespace sessions { 26 namespace sessions {
28 class StatusController; 27 class StatusController;
29 } 28 }
30 29
31 namespace syncable { 30 namespace syncable {
32 class Directory; 31 class Directory;
33 } 32 }
34 33
35 class DirectoryTypeDebugInfoEmitter; 34 class DirectoryTypeDebugInfoEmitter;
36 class ModelSafeWorker; 35 class ModelSafeWorker;
37 36
38 // This class represents the syncable::Directory's processes for requesting and 37 // This class represents the syncable::Directory's processes for requesting and
39 // processing updates from the sync server. 38 // processing updates from the sync server.
40 // 39 //
41 // Each instance of this class represents a particular type in the 40 // Each instance of this class represents a particular type in the
42 // syncable::Directory. It can store and retreive that type's progress markers. 41 // syncable::Directory. It can store and retreive that type's progress markers.
43 // It can also process a set of received SyncEntities and store their data. 42 // It can also process a set of received SyncEntities and store their data.
44 class SYNC_EXPORT DirectoryUpdateHandler : public UpdateHandler { 43 class DirectoryUpdateHandler : public UpdateHandler {
45 public: 44 public:
46 DirectoryUpdateHandler(syncable::Directory* dir, 45 DirectoryUpdateHandler(syncable::Directory* dir,
47 ModelType type, 46 ModelType type,
48 scoped_refptr<ModelSafeWorker> worker, 47 scoped_refptr<ModelSafeWorker> worker,
49 DirectoryTypeDebugInfoEmitter* debug_info_emitter); 48 DirectoryTypeDebugInfoEmitter* debug_info_emitter);
50 ~DirectoryUpdateHandler() override; 49 ~DirectoryUpdateHandler() override;
51 50
52 // UpdateHandler implementation. 51 // UpdateHandler implementation.
53 bool IsInitialSyncEnded() const override; 52 bool IsInitialSyncEnded() const override;
54 void GetDownloadProgress( 53 void GetDownloadProgress(
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 DirectoryTypeDebugInfoEmitter* debug_info_emitter_; 104 DirectoryTypeDebugInfoEmitter* debug_info_emitter_;
106 105
107 std::unique_ptr<sync_pb::GarbageCollectionDirective> cached_gc_directive_; 106 std::unique_ptr<sync_pb::GarbageCollectionDirective> cached_gc_directive_;
108 107
109 DISALLOW_COPY_AND_ASSIGN(DirectoryUpdateHandler); 108 DISALLOW_COPY_AND_ASSIGN(DirectoryUpdateHandler);
110 }; 109 };
111 110
112 } // namespace syncer 111 } // namespace syncer
113 112
114 #endif // COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_UPDATE_HANDLER_H_ 113 #endif // COMPONENTS_SYNC_ENGINE_IMPL_DIRECTORY_UPDATE_HANDLER_H_
OLDNEW
« no previous file with comments | « components/sync/engine_impl/directory_commit_contribution.h ('k') | components/sync/engine_impl/get_commit_ids.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698