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

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

Issue 7669073: [Sync] Add support for enabling session sync remotely. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 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 (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_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
157 void RegisterAuthNotifications(); 157 void RegisterAuthNotifications();
158 158
159 // Return whether all sync tokens are loaded and 159 // Return whether all sync tokens are loaded and
160 // available for the backend to start up. 160 // available for the backend to start up.
161 bool AreCredentialsAvailable(); 161 bool AreCredentialsAvailable();
162 162
163 // Registers a data type controller with the sync service. This 163 // Registers a data type controller with the sync service. This
164 // makes the data type controller available for use, it does not 164 // makes the data type controller available for use, it does not
165 // enable or activate the synchronization of the data type (see 165 // enable or activate the synchronization of the data type (see
166 // ActivateDataType). Takes ownership of the pointer. 166 // ActivateDataType). Takes ownership of the pointer.
167 void RegisterDataTypeController( 167 virtual void RegisterDataTypeController(
168 browser_sync::DataTypeController* data_type_controller); 168 browser_sync::DataTypeController* data_type_controller) OVERRIDE;
169 169
170 // Returns the session model associator associated with this type, but only if 170 // Returns the session model associator associated with this type, but only if
171 // the associator is running. If it is doing anything else, it will return 171 // the associator is running. If it is doing anything else, it will return
172 // null. 172 // null.
173 browser_sync::SessionModelAssociator* GetSessionModelAssociator(); 173 browser_sync::SessionModelAssociator* GetSessionModelAssociator();
174 174
175 // Maintain state of where we are in a server clear operation. 175 // Maintain state of where we are in a server clear operation.
176 void ResetClearServerDataState(); 176 void ResetClearServerDataState();
177 ClearServerDataState GetClearServerDataState(); 177 ClearServerDataState GetClearServerDataState();
178 178
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 // If it is running, the DataTypeManager will be instructed to reconfigure 406 // If it is running, the DataTypeManager will be instructed to reconfigure
407 // the sync backend so that exactly these datatypes are actively synced. See 407 // the sync backend so that exactly these datatypes are actively synced. See
408 // class comment for more on what it means for a datatype to be Preferred. 408 // class comment for more on what it means for a datatype to be Preferred.
409 virtual void ChangePreferredDataTypes( 409 virtual void ChangePreferredDataTypes(
410 const syncable::ModelTypeSet& preferred_types); 410 const syncable::ModelTypeSet& preferred_types);
411 411
412 // Get the set of currently enabled data types (as chosen or configured by 412 // Get the set of currently enabled data types (as chosen or configured by
413 // the user). See class comment for more on what it means for a datatype 413 // the user). See class comment for more on what it means for a datatype
414 // to be Preferred. 414 // to be Preferred.
415 virtual void GetPreferredDataTypes( 415 virtual void GetPreferredDataTypes(
416 syncable::ModelTypeSet* preferred_types) const; 416 syncable::ModelTypeSet* preferred_types) const OVERRIDE;
417 417
418 // Gets the set of all data types that could be allowed (the set that 418 // Gets the set of all data types that could be allowed (the set that
419 // should be advertised to the user). These will typically only change 419 // should be advertised to the user). These will typically only change
420 // via a command-line option. See class comment for more on what it means 420 // via a command-line option. See class comment for more on what it means
421 // for a datatype to be Registered. 421 // for a datatype to be Registered.
422 virtual void GetRegisteredDataTypes( 422 virtual void GetRegisteredDataTypes(
423 syncable::ModelTypeSet* registered_types) const; 423 syncable::ModelTypeSet* registered_types) const OVERRIDE;
424 424
425 // Checks whether the Cryptographer is ready to encrypt and decrypt updates 425 // Checks whether the Cryptographer is ready to encrypt and decrypt updates
426 // for sensitive data types. Caller must be holding a 426 // for sensitive data types. Caller must be holding a
427 // syncapi::BaseTransaction to ensure thread safety. 427 // syncapi::BaseTransaction to ensure thread safety.
428 virtual bool IsCryptographerReady( 428 virtual bool IsCryptographerReady(
429 const sync_api::BaseTransaction* trans) const; 429 const sync_api::BaseTransaction* trans) const;
430 430
431 // Returns true if a secondary passphrase is being used. 431 // Returns true if a secondary passphrase is being used.
432 virtual bool IsUsingSecondaryPassphrase() const; 432 virtual bool IsUsingSecondaryPassphrase() const;
433 433
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
649 // and cached until the syncer either finishes encryption 649 // and cached until the syncer either finishes encryption
650 // (OnEncryptionComplete) or the user cancels. 650 // (OnEncryptionComplete) or the user cancels.
651 syncable::ModelTypeSet pending_types_for_encryption_; 651 syncable::ModelTypeSet pending_types_for_encryption_;
652 652
653 scoped_ptr<browser_sync::BackendMigrator> migrator_; 653 scoped_ptr<browser_sync::BackendMigrator> migrator_;
654 654
655 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 655 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
656 }; 656 };
657 657
658 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 658 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698