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

Side by Side Diff: sync/internal_api/sync_manager_impl.h

Issue 10824410: [Sync] Refactor passphrase state handling (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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) 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 SYNC_INTERNAL_API_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 const sync_pb::EncryptedData& pending_keys) OVERRIDE; 121 const sync_pb::EncryptedData& pending_keys) OVERRIDE;
122 virtual void OnPassphraseAccepted() OVERRIDE; 122 virtual void OnPassphraseAccepted() OVERRIDE;
123 virtual void OnBootstrapTokenUpdated( 123 virtual void OnBootstrapTokenUpdated(
124 const std::string& bootstrap_token) OVERRIDE; 124 const std::string& bootstrap_token) OVERRIDE;
125 virtual void OnEncryptedTypesChanged( 125 virtual void OnEncryptedTypesChanged(
126 ModelTypeSet encrypted_types, 126 ModelTypeSet encrypted_types,
127 bool encrypt_everything) OVERRIDE; 127 bool encrypt_everything) OVERRIDE;
128 virtual void OnEncryptionComplete() OVERRIDE; 128 virtual void OnEncryptionComplete() OVERRIDE;
129 virtual void OnCryptographerStateChanged( 129 virtual void OnCryptographerStateChanged(
130 Cryptographer* cryptographer) OVERRIDE; 130 Cryptographer* cryptographer) OVERRIDE;
131 virtual void OnPassphraseStateChanged(PassphraseState state) OVERRIDE;
131 132
132 // Return the currently active (validated) username for use with syncable 133 // Return the currently active (validated) username for use with syncable
133 // types. 134 // types.
134 const std::string& username_for_share() const; 135 const std::string& username_for_share() const;
135 136
136 static int GetDefaultNudgeDelay(); 137 static int GetDefaultNudgeDelay();
137 static int GetPreferencesNudgeDelay(); 138 static int GetPreferencesNudgeDelay();
138 139
139 // SyncEngineEventListener implementation. 140 // SyncEngineEventListener implementation.
140 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE; 141 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE;
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
381 // changing passphrases, and in general handles sync-specific interactions 382 // changing passphrases, and in general handles sync-specific interactions
382 // with the cryptographer. 383 // with the cryptographer.
383 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 384 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
384 385
385 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 386 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
386 }; 387 };
387 388
388 } // namespace syncer 389 } // namespace syncer
389 390
390 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 391 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_encryption_handler_impl_unittest.cc ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698