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

Unified Diff: components/sync/syncable/nigori_handler.h

Issue 2278043003: Thread-safe version of PassphraseType. (Closed)
Patch Set: Thread-safe version of PassphraseType. Created 4 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 side-by-side diff with in-line comments
Download patch
Index: components/sync/syncable/nigori_handler.h
diff --git a/components/sync/syncable/nigori_handler.h b/components/sync/syncable/nigori_handler.h
index 2f9682cb06f9ab92b6f8d442ebc6b3af302eaf12..6baa0cca058c596fc9fd8056019ef0917ea4a1b5 100644
--- a/components/sync/syncable/nigori_handler.h
+++ b/components/sync/syncable/nigori_handler.h
@@ -21,6 +21,9 @@ class NigoriSpecifics;
}
namespace syncer {
+
+enum class PassphraseType;
+
namespace syncable {
class BaseTransaction;
@@ -56,6 +59,10 @@ class NigoriHandler {
// Returns the set of currently encrypted types.
virtual ModelTypeSet GetEncryptedTypes(
syncable::BaseTransaction* const trans) const = 0;
+
+ // Returns current value for the passphrase type.
+ virtual PassphraseType GetPassphraseType(
+ syncable::BaseTransaction* const trans) const = 0;
};
} // namespace syncable
« no previous file with comments | « components/sync/core_impl/sync_manager_impl_unittest.cc ('k') | components/sync/test/fake_sync_encryption_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698