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

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: Rebase 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
« no previous file with comments | « no previous file | chrome/browser/sync/glue/sync_backend_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
517 // trying to decrypt the cached pending keys on the UI thread. Note that 517 // trying to decrypt the cached pending keys on the UI thread. Note that
518 // SetDecryptionPassphrase can still fail after the cached pending keys are 518 // SetDecryptionPassphrase can still fail after the cached pending keys are
519 // successfully decrypted if the pending keys have changed since the time they 519 // successfully decrypted if the pending keys have changed since the time they
520 // were cached. 520 // were cached.
521 sync_pb::EncryptedData cached_pending_keys_; 521 sync_pb::EncryptedData cached_pending_keys_;
522 522
523 // The state of the passphrase required to decrypt the bag of encryption keys 523 // The state of the passphrase required to decrypt the bag of encryption keys
524 // in the nigori node. Updated whenever a new nigori node arrives or the user 524 // in the nigori node. Updated whenever a new nigori node arrives or the user
525 // manually changes their passphrase state. Cached so we can synchronously 525 // manually changes their passphrase state. Cached so we can synchronously
526 // check it from the UI thread. 526 // check it from the UI thread.
527 syncer::PassphraseState cached_passphrase_state_; 527 syncer::PassphraseType cached_passphrase_type_;
528 528
529 // UI-thread cache of the last SyncSessionSnapshot received from syncapi. 529 // UI-thread cache of the last SyncSessionSnapshot received from syncapi.
530 syncer::sessions::SyncSessionSnapshot last_snapshot_; 530 syncer::sessions::SyncSessionSnapshot last_snapshot_;
531 531
532 // Temporary holder for the javascript backend. Set by 532 // Temporary holder for the javascript backend. Set by
533 // HandleSyncManagerInitializationOnFrontendLoop, and consumed when we pass 533 // HandleSyncManagerInitializationOnFrontendLoop, and consumed when we pass
534 // it via OnBackendInitialized in the final state of 534 // it via OnBackendInitialized in the final state of
535 // HandleInitializationCompletedOnFrontendLoop. 535 // HandleInitializationCompletedOnFrontendLoop.
536 syncer::WeakHandle<syncer::JsBackend> js_backend_; 536 syncer::WeakHandle<syncer::JsBackend> js_backend_;
537 537
538 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost); 538 DISALLOW_COPY_AND_ASSIGN(SyncBackendHost);
539 }; 539 };
540 540
541 } // namespace browser_sync 541 } // namespace browser_sync
542 542
543 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_H_ 543 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698