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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_mock.h

Issue 1418513005: [sync] Set up notification-free infra for triggering local sync refresh (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Response to review Created 5 years, 1 month 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 25 matching lines...) Expand all
36 const syncer::SyncCredentials& credentials, 36 const syncer::SyncCredentials& credentials,
37 bool delete_sync_data_folder, 37 bool delete_sync_data_folder,
38 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, 38 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory,
39 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>& 39 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>&
40 unrecoverable_error_handler, 40 unrecoverable_error_handler,
41 const base::Closure& report_unrecoverable_error_function, 41 const base::Closure& report_unrecoverable_error_function,
42 syncer::NetworkResources* network_resources, 42 syncer::NetworkResources* network_resources,
43 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state) 43 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state)
44 override; 44 override;
45 45
46 void TriggerRefresh(const syncer::ModelTypeSet& types) override;
47
46 void UpdateCredentials(const syncer::SyncCredentials& credentials) override; 48 void UpdateCredentials(const syncer::SyncCredentials& credentials) override;
47 49
48 void StartSyncingWithServer() override; 50 void StartSyncingWithServer() override;
49 51
50 void SetEncryptionPassphrase(const std::string& passphrase, 52 void SetEncryptionPassphrase(const std::string& passphrase,
51 bool is_explicit) override; 53 bool is_explicit) override;
52 54
53 bool SetDecryptionPassphrase(const std::string& passphrase) override; 55 bool SetDecryptionPassphrase(const std::string& passphrase) override;
54 56
55 void StopSyncingForShutdown() override; 57 void StopSyncingForShutdown() override;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 122
121 void set_fail_initial_download(bool should_fail); 123 void set_fail_initial_download(bool should_fail);
122 124
123 private: 125 private:
124 bool fail_initial_download_; 126 bool fail_initial_download_;
125 }; 127 };
126 128
127 } // namespace browser_sync 129 } // namespace browser_sync
128 130
129 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 131 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl.cc ('k') | chrome/browser/sync/glue/sync_backend_host_mock.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698