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

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

Issue 442053002: sync: Add non-blocking type encryption (retry) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
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 SYNC_INTERNAL_API_PUBLIC_SYNC_CONTEXT_PROXY_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_CONTEXT_PROXY_H_
6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_CONTEXT_PROXY_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_CONTEXT_PROXY_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "sync/internal_api/public/base/model_type.h" 9 #include "sync/internal_api/public/base/model_type.h"
10 #include "sync/internal_api/public/non_blocking_sync_common.h"
10 11
11 namespace syncer { 12 namespace syncer {
12 13
13 class ModelTypeSyncProxyImpl; 14 class ModelTypeSyncProxyImpl;
14 struct DataTypeState; 15 struct DataTypeState;
15 16
16 // Interface for the datatype integration logic from non-sync threads. 17 // Interface for the datatype integration logic from non-sync threads.
17 // 18 //
18 // See SyncContextProxyImpl for an actual implementation. 19 // See SyncContextProxyImpl for an actual implementation.
19 class SYNC_EXPORT_PRIVATE SyncContextProxy { 20 class SYNC_EXPORT_PRIVATE SyncContextProxy {
20 public: 21 public:
21 SyncContextProxy(); 22 SyncContextProxy();
22 virtual ~SyncContextProxy(); 23 virtual ~SyncContextProxy();
23 24
24 // Attempts to connect a non-blocking type to the sync context. 25 // Attempts to connect a non-blocking type to the sync context.
25 // 26 //
26 // Must be called from the thread where the data type lives. 27 // Must be called from the thread where the data type lives.
27 virtual void ConnectTypeToSync( 28 virtual void ConnectTypeToSync(
28 syncer::ModelType type, 29 syncer::ModelType type,
29 const DataTypeState& data_type_state, 30 const DataTypeState& data_type_state,
31 const UpdateResponseDataList& saved_pending_updates,
30 const base::WeakPtr<ModelTypeSyncProxyImpl>& type_sync_proxy) = 0; 32 const base::WeakPtr<ModelTypeSyncProxyImpl>& type_sync_proxy) = 0;
31 33
32 // Tells the syncer that we're no longer interested in syncing this type. 34 // Tells the syncer that we're no longer interested in syncing this type.
33 // 35 //
34 // Once this takes effect, the syncer can assume that it will no longer 36 // Once this takes effect, the syncer can assume that it will no longer
35 // receive commit requests for this type. It should also stop requesting 37 // receive commit requests for this type. It should also stop requesting
36 // and applying updates for this type, too. 38 // and applying updates for this type, too.
37 virtual void Disconnect(syncer::ModelType type) = 0; 39 virtual void Disconnect(syncer::ModelType type) = 0;
38 40
39 // Creates a clone of this SyncContextProxy. 41 // Creates a clone of this SyncContextProxy.
40 virtual scoped_ptr<SyncContextProxy> Clone() const = 0; 42 virtual scoped_ptr<SyncContextProxy> Clone() const = 0;
41 }; 43 };
42 44
43 } // namespace syncer 45 } // namespace syncer
44 46
45 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_CONTEXT_PROXY_H_ 47 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_CONTEXT_PROXY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sync_context.h ('k') | sync/internal_api/public/test/null_sync_context_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698