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

Side by Side Diff: sync/internal_api/public/test/null_sync_context_proxy.h

Issue 1321613003: [Sync] Use ModelTypeProcessor instead of ModelTypeProcessorImpl. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Revert unnecessary changes. Created 5 years, 3 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 SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_
6 #define SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_TEST_NULL_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/non_blocking_sync_common.h" 9 #include "sync/internal_api/public/non_blocking_sync_common.h"
10 #include "sync/internal_api/public/sync_context_proxy.h" 10 #include "sync/internal_api/public/sync_context_proxy.h"
11 11
12 namespace syncer_v2 { 12 namespace syncer_v2 {
13 class ModelTypeProcessorImpl; 13 class ModelTypeProcessor;
14 14
15 // A non-functional implementation of SyncContextProxy. 15 // A non-functional implementation of SyncContextProxy.
16 // 16 //
17 // It supports Clone(), but not much else. Useful for testing. 17 // It supports Clone(), but not much else. Useful for testing.
18 class NullSyncContextProxy : public SyncContextProxy { 18 class NullSyncContextProxy : public SyncContextProxy {
19 public: 19 public:
20 NullSyncContextProxy(); 20 NullSyncContextProxy();
21 ~NullSyncContextProxy() override; 21 ~NullSyncContextProxy() override;
22 22
23 void ConnectTypeToSync( 23 void ConnectTypeToSync(
24 syncer::ModelType type, 24 syncer::ModelType type,
25 const DataTypeState& data_type_state, 25 const DataTypeState& data_type_state,
26 const UpdateResponseDataList& saved_pending_updates, 26 const UpdateResponseDataList& saved_pending_updates,
27 const base::WeakPtr<ModelTypeProcessorImpl>& type_sync_proxy) override; 27 const base::WeakPtr<ModelTypeProcessor>& type_processor) override;
28 void Disconnect(syncer::ModelType type) override; 28 void Disconnect(syncer::ModelType type) override;
29 scoped_ptr<SyncContextProxy> Clone() const override; 29 scoped_ptr<SyncContextProxy> Clone() const override;
30 }; 30 };
31 31
32 } // namespace syncer 32 } // namespace syncer
33 33
34 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_ 34 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_NULL_SYNC_CONTEXT_PROXY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sync_context_proxy.h ('k') | sync/internal_api/sync_context_proxy_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698