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

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

Issue 437683002: Wire sync shutdown reason from PSS all the way down to sync manager. (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 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 45
46 virtual void SetEncryptionPassphrase( 46 virtual void SetEncryptionPassphrase(
47 const std::string& passphrase, 47 const std::string& passphrase,
48 bool is_explicit) OVERRIDE; 48 bool is_explicit) OVERRIDE;
49 49
50 virtual bool SetDecryptionPassphrase( 50 virtual bool SetDecryptionPassphrase(
51 const std::string& passphrase) OVERRIDE; 51 const std::string& passphrase) OVERRIDE;
52 52
53 virtual void StopSyncingForShutdown() OVERRIDE; 53 virtual void StopSyncingForShutdown() OVERRIDE;
54 54
55 virtual scoped_ptr<base::Thread> Shutdown(ShutdownOption option) OVERRIDE; 55 virtual scoped_ptr<base::Thread> Shutdown(syncer::ShutdownReason reason)
56 OVERRIDE;
56 57
57 virtual void UnregisterInvalidationIds() OVERRIDE; 58 virtual void UnregisterInvalidationIds() OVERRIDE;
58 59
59 virtual void ConfigureDataTypes( 60 virtual void ConfigureDataTypes(
60 syncer::ConfigureReason reason, 61 syncer::ConfigureReason reason,
61 const DataTypeConfigStateMap& config_state_map, 62 const DataTypeConfigStateMap& config_state_map,
62 const base::Callback<void(syncer::ModelTypeSet, 63 const base::Callback<void(syncer::ModelTypeSet,
63 syncer::ModelTypeSet)>& ready_task, 64 syncer::ModelTypeSet)>& ready_task,
64 const base::Callback<void()>& retry_callback) OVERRIDE; 65 const base::Callback<void()>& retry_callback) OVERRIDE;
65 66
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 111
111 void set_fail_initial_download(bool should_fail); 112 void set_fail_initial_download(bool should_fail);
112 113
113 private: 114 private:
114 bool fail_initial_download_; 115 bool fail_initial_download_;
115 }; 116 };
116 117
117 } // namespace browser_sync 118 } // namespace browser_sync
118 119
119 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_ 120 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_MOCK_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_impl_unittest.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