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

Side by Side Diff: chrome/browser/sync/profile_sync_service_harness.h

Issue 7669073: [Sync] Add support for enabling session sync remotely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: DOUBLE R..ebase Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_PROFILE_SYNC_SERVICE_HARNESS_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_HARNESS_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_HARNESS_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_HARNESS_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 150
151 // Wait until |type| is encrypted or we time out. 151 // Wait until |type| is encrypted or we time out.
152 // PostCondition: 152 // PostCondition:
153 // returns: True if |type| is currently encrypted and we are fully synced. 153 // returns: True if |type| is currently encrypted and we are fully synced.
154 // False if we timed out. 154 // False if we timed out.
155 bool WaitForTypeEncryption(syncable::ModelType type); 155 bool WaitForTypeEncryption(syncable::ModelType type);
156 156
157 // Check if |type| is encrypted. 157 // Check if |type| is encrypted.
158 bool IsTypeEncrypted(syncable::ModelType type); 158 bool IsTypeEncrypted(syncable::ModelType type);
159 159
160 // Check if |type| is registered.
161 bool IsTypeRegistered(syncable::ModelType types);
162
163 // Check if |type| is being synced.
164 bool IsTypePreferred(syncable::ModelType type);
165
160 private: 166 private:
161 friend class StateChangeTimeoutEvent; 167 friend class StateChangeTimeoutEvent;
162 168
163 enum WaitState { 169 enum WaitState {
164 // The sync client has just been initialized. 170 // The sync client has just been initialized.
165 INITIAL_WAIT_STATE = 0, 171 INITIAL_WAIT_STATE = 0,
166 172
167 // The sync client awaits the OnBackendInitialized() callback. 173 // The sync client awaits the OnBackendInitialized() callback.
168 WAITING_FOR_ON_BACKEND_INITIALIZED, 174 WAITING_FOR_ON_BACKEND_INITIALIZED,
169 175
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 const std::string profile_debug_name_; 285 const std::string profile_debug_name_;
280 286
281 // Keeps track of the number of attempts at exponential backoff and its 287 // Keeps track of the number of attempts at exponential backoff and its
282 // related bookkeeping information for verification. 288 // related bookkeeping information for verification.
283 browser_sync::RetryVerifier retry_verifier_; 289 browser_sync::RetryVerifier retry_verifier_;
284 290
285 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness); 291 DISALLOW_COPY_AND_ASSIGN(ProfileSyncServiceHarness);
286 }; 292 };
287 293
288 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_HARNESS_H_ 294 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_HARNESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/profile_sync_service.cc ('k') | chrome/browser/sync/profile_sync_service_harness.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698