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

Side by Side Diff: sync/internal_api/public/activation_context.h

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. 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
(Empty)
1 // Copyright 2015 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.
4
5 #ifndef SYNC_INTERNAL_API_PUBLIC_ACTIVATION_CONTEXT_H_
6 #define SYNC_INTERNAL_API_PUBLIC_ACTIVATION_CONTEXT_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/memory/weak_ptr.h"
10 #include "base/sequenced_task_runner.h"
11 #include "sync/base/sync_export.h"
12 #include "sync/internal_api/public/model_type_processor.h"
13 #include "sync/internal_api/public/non_blocking_sync_common.h"
14 #include "sync/protocol/data_type_state.pb.h"
15
16 namespace syncer_v2 {
17
18 // The state passed from ModelTypeProcessor to Sync thread during DataType
19 // activation.
20 struct SYNC_EXPORT ActivationContext {
21 ActivationContext();
22 ~ActivationContext();
23
24 // Initial DataTypeState at the moment of activation.
25 sync_pb::DataTypeState data_type_state;
26
27 // The ModelTypeProcessor for the worker. Note that this is owned because
28 // it is generally a proxy object to the real processor.
29 std::unique_ptr<ModelTypeProcessor> type_processor;
30 };
31
32 } // namespace syncer_v2
33
34 #endif // SYNC_INTERNAL_API_PUBLIC_ACTIVATION_CONTEXT_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/DEPS ('k') | sync/internal_api/public/attachments/attachment_downloader.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698