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

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

Issue 1368683003: USS SyncContextProxy / data type activation refactoring (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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/basictypes.h"
pavely 2015/09/25 18:22:38 I think you can remove basictypes.h. This file is
stanisc 2015/09/26 00:16:01 Done.
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/non_blocking_sync_common.h"
13
14 namespace syncer_v2 {
15 class ModelTypeProcessor;
16
17 // The state passed from ModelType Processor to Sync thread during DataType
pavely 2015/09/25 18:22:39 nit: ModelType Processor => ModelTypeProcessor
stanisc 2015/09/26 00:16:01 Done.
18 // activation.
19 struct SYNC_EXPORT_PRIVATE ActivationContext {
20 ActivationContext();
21 ~ActivationContext();
22
23 // Initial DataTypeState at the moment of activation.
24 DataTypeState data_type_state;
25 // Pending updates from the previous session.
26 // TODO(stanisc): crbug.com/529498: should remove pending updates.
27 UpdateResponseDataList saved_pending_updates;
28 // Task runner for the data type.
29 scoped_refptr<base::SequencedTaskRunner> type_task_runner;
30 // ModelTypeProcessor for the data type.
31 base::WeakPtr<ModelTypeProcessor> type_processor;
32 };
33
34 } // namespace syncer_v2
35
36 #endif // SYNC_INTERNAL_API_PUBLIC_ACTIVATION_CONTEXT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698