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/glue/sync_backend_host.h

Issue 10916036: [Sync] Implement keystore migration support. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address comments Created 8 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 432 matching lines...) Expand 10 before | Expand all | Expand 10 after
443 // everything flag changes. 443 // everything flag changes.
444 void NotifyEncryptedTypesChanged( 444 void NotifyEncryptedTypesChanged(
445 syncer::ModelTypeSet encrypted_types, 445 syncer::ModelTypeSet encrypted_types,
446 bool encrypt_everything); 446 bool encrypt_everything);
447 447
448 // Invoked when sync finishes encrypting new datatypes. 448 // Invoked when sync finishes encrypting new datatypes.
449 void NotifyEncryptionComplete(); 449 void NotifyEncryptionComplete();
450 450
451 // Invoked when the passphrase state has changed. Caches the passphrase state 451 // Invoked when the passphrase state has changed. Caches the passphrase state
452 // for later use on the UI thread. 452 // for later use on the UI thread.
453 void HandlePassphraseStateChangedOnFrontendLoop( 453 void HandlePassphraseTypeChangedOnFrontendLoop(
454 syncer::PassphraseState state); 454 syncer::PassphraseType state);
455 455
456 void HandleStopSyncingPermanentlyOnFrontendLoop(); 456 void HandleStopSyncingPermanentlyOnFrontendLoop();
457 457
458 // Dispatched to from OnConnectionStatusChange to handle updating 458 // Dispatched to from OnConnectionStatusChange to handle updating
459 // frontend UI components. 459 // frontend UI components.
460 void HandleConnectionStatusChangeOnFrontendLoop( 460 void HandleConnectionStatusChangeOnFrontendLoop(
461 syncer::ConnectionStatus status); 461 syncer::ConnectionStatus status);
462 462
463 // Called when configuration of the Nigori node has completed as 463 // Called when configuration of the Nigori node has completed as
464 // part of the initialization process. 464 // part of the initialization process.
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
518 // trying to decrypt the cached pending keys on the UI thread. Note that 518 // trying to decrypt the cached pending keys on the UI thread. Note that
519 // SetDecryptionPassphrase can still fail after the cached pending keys are 519 // SetDecryptionPassphrase can still fail after the cached pending keys are
520 // successfully decrypted if the pending keys have changed since the time they 520 // successfully decrypted if the pending keys have changed since the time they
521 // were cached. 521 // were cached.
522 sync_pb::EncryptedData cached_pending_keys_; 522 sync_pb::EncryptedData cached_pending_keys_;
523 523
524 // The state of the passphrase required to decrypt the bag of encryption keys 524 // The state of the passphrase required to decrypt the bag of encryption keys
525 // in the nigori node. Updated whenever a new nigori node arrives or the user 525 // in the nigori node. Updated whenever a new nigori node arrives or the user
526 // manually changes their passphrase state. Cached so we can synchronously 526 // manually changes their passphrase state. Cached so we can synchronously
527 // check it from the UI thread. 527 // check it from the UI thread.
528 syncer::PassphraseState cached_passphrase_state_; 528 syncer::PassphraseType cached_passphrase_type_;
529 529
530 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. 530 // UI-thread cache of the last SyncSessionSnapshot received from syncapi.
531 syncer::sessions::SyncSessionSnapshot last_snapshot_; 531 syncer::sessions::SyncSessionSnapshot last_snapshot_;
532 532
533 // Temporary holder for the javascript backend. Set by 533 // Temporary holder for the javascript backend. Set by
534 // HandleSyncManagerInitializationOnFrontendLoop, and consumed when we pass 534 // HandleSyncManagerInitializationOnFrontendLoop, and consumed when we pass
535 // it via OnBackendInitialized in the final state of 535 // it via OnBackendInitialized in the final state of
536 // HandleInitializationCompletedOnFrontendLoop. 536 // HandleInitializationCompletedOnFrontendLoop.
537 syncer::WeakHandle<syncer::JsBackend> js_backend_; 537 syncer::WeakHandle<syncer::JsBackend> js_backend_;
538 538
539 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 539 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
540 }; 540 };
541 541
542 } // namespace browser_sync 542 } // namespace browser_sync
543 543
544 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 544 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | sync/internal_api/sync_encryption_handler_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698