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

Side by Side Diff: chrome/browser/sync/internal_api/sync_manager.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_INTERNAL_API_SYNC_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_
6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ 6 #define CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 494 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 505
506 UserShare* GetUserShare() const; 506 UserShare* GetUserShare() const;
507 507
508 // Inform the cryptographer of the most recent passphrase and set of encrypted 508 // Inform the cryptographer of the most recent passphrase and set of encrypted
509 // types (from nigori node), then ensure all data that needs encryption is 509 // types (from nigori node), then ensure all data that needs encryption is
510 // encrypted with the appropriate passphrase. 510 // encrypted with the appropriate passphrase.
511 // Note: opens a transaction and can trigger ON_PASSPHRASE_REQUIRED, so must 511 // Note: opens a transaction and can trigger ON_PASSPHRASE_REQUIRED, so must
512 // only be called after syncapi has been initialized. 512 // only be called after syncapi has been initialized.
513 void RefreshEncryption(); 513 void RefreshEncryption();
514 514
515 // Gets the set of encrypted types from the cryptographer
516 // Note: opens a transaction.
515 syncable::ModelTypeSet GetEncryptedDataTypes() const; 517 syncable::ModelTypeSet GetEncryptedDataTypes() const;
516 518
519 // Reads the nigori node to determine if session sync should be enabled.
520 // Note: opens a transaction.
521 bool ShouldEnableSessions() const;
522
517 // Uses a read-only transaction to determine if the directory being synced has 523 // Uses a read-only transaction to determine if the directory being synced has
518 // any remaining unsynced items. 524 // any remaining unsynced items.
519 bool HasUnsyncedItems() const; 525 bool HasUnsyncedItems() const;
520 526
521 // Logs the list of unsynced meta handles. 527 // Logs the list of unsynced meta handles.
522 void LogUnsyncedItems(int level) const; 528 void LogUnsyncedItems(int level) const;
523 529
524 // Functions used for testing. 530 // Functions used for testing.
525 531
526 void TriggerOnNotificationStateChangeForTest( 532 void TriggerOnNotificationStateChangeForTest(
(...skipping 10 matching lines...) Expand all
537 }; 543 };
538 544
539 bool InitialSyncEndedForTypes(syncable::ModelTypeSet types, UserShare* share); 545 bool InitialSyncEndedForTypes(syncable::ModelTypeSet types, UserShare* share);
540 546
541 // Returns the string representation of a PassphraseRequiredReason value. 547 // Returns the string representation of a PassphraseRequiredReason value.
542 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason); 548 std::string PassphraseRequiredReasonToString(PassphraseRequiredReason reason);
543 549
544 } // namespace sync_api 550 } // namespace sync_api
545 551
546 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_ 552 #endif // CHROME_BROWSER_SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698