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

Side by Side Diff: components/sync/driver/fake_sync_service.h

Issue 2289143003: [Sync] Convert DTCs to be not RefCounted and NonThreadSafe. (Closed)
Patch Set: Rebase. Created 4 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 2015 The Chromium Authors. All rights reserved. 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 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_DRIVER_FAKE_SYNC_SERVICE_H_ 5 #ifndef COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_
6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ 6 #define COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_
7 7
8 #include <memory>
8 #include <string> 9 #include <string>
9 10
10 #include "components/sync/driver/sync_service.h" 11 #include "components/sync/driver/sync_service.h"
11 #include "components/sync/engine/cycle/sync_cycle_snapshot.h" 12 #include "components/sync/engine/cycle/sync_cycle_snapshot.h"
12 #include "google_apis/gaia/google_service_auth_error.h" 13 #include "google_apis/gaia/google_service_auth_error.h"
13 14
14 namespace syncer { 15 namespace syncer {
15 class BaseTransaction; 16 class BaseTransaction;
16 struct UserShare; 17 struct UserShare;
17 } 18 }
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void EnableEncryptEverything() override; 60 void EnableEncryptEverything() override;
60 bool IsEncryptEverythingEnabled() const override; 61 bool IsEncryptEverythingEnabled() const override;
61 void SetEncryptionPassphrase(const std::string& passphrase, 62 void SetEncryptionPassphrase(const std::string& passphrase,
62 PassphraseType type) override; 63 PassphraseType type) override;
63 bool SetDecryptionPassphrase(const std::string& passphrase) override; 64 bool SetDecryptionPassphrase(const std::string& passphrase) override;
64 bool IsCryptographerReady( 65 bool IsCryptographerReady(
65 const syncer::BaseTransaction* trans) const override; 66 const syncer::BaseTransaction* trans) const override;
66 syncer::UserShare* GetUserShare() const override; 67 syncer::UserShare* GetUserShare() const override;
67 LocalDeviceInfoProvider* GetLocalDeviceInfoProvider() const override; 68 LocalDeviceInfoProvider* GetLocalDeviceInfoProvider() const override;
68 void RegisterDataTypeController( 69 void RegisterDataTypeController(
69 sync_driver::DataTypeController* data_type_controller) override; 70 std::unique_ptr<sync_driver::DataTypeController> data_type_controller)
71 override;
70 void ReenableDatatype(syncer::ModelType type) override; 72 void ReenableDatatype(syncer::ModelType type) override;
71 SyncTokenStatus GetSyncTokenStatus() const override; 73 SyncTokenStatus GetSyncTokenStatus() const override;
72 std::string QuerySyncStatusSummaryString() override; 74 std::string QuerySyncStatusSummaryString() override;
73 bool QueryDetailedSyncStatus(syncer::SyncStatus* result) override; 75 bool QueryDetailedSyncStatus(syncer::SyncStatus* result) override;
74 base::string16 GetLastSyncedTimeString() const override; 76 base::string16 GetLastSyncedTimeString() const override;
75 std::string GetBackendInitializationStateString() const override; 77 std::string GetBackendInitializationStateString() const override;
76 syncer::SyncCycleSnapshot GetLastCycleSnapshot() const override; 78 syncer::SyncCycleSnapshot GetLastCycleSnapshot() const override;
77 base::Value* GetTypeStatusMap() const override; 79 base::Value* GetTypeStatusMap() const override;
78 const GURL& sync_service_url() const override; 80 const GURL& sync_service_url() const override;
79 std::string unrecoverable_error_message() const override; 81 std::string unrecoverable_error_message() const override;
(...skipping 16 matching lines...) Expand all
96 98
97 GoogleServiceAuthError error_; 99 GoogleServiceAuthError error_;
98 GURL sync_service_url_; 100 GURL sync_service_url_;
99 std::string unrecoverable_error_message_; 101 std::string unrecoverable_error_message_;
100 std::unique_ptr<syncer::UserShare> user_share_; 102 std::unique_ptr<syncer::UserShare> user_share_;
101 }; 103 };
102 104
103 } // namespace sync_driver 105 } // namespace sync_driver
104 106
105 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_ 107 #endif // COMPONENTS_SYNC_DRIVER_FAKE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « components/sync/driver/fake_generic_change_processor.cc ('k') | components/sync/driver/fake_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698