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

Side by Side Diff: components/sync/core/sync_encryption_handler.h

Issue 2278043003: Thread-safe version of PassphraseType. (Closed)
Patch Set: Thread-safe version of PassphraseType. Created 4 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
« no previous file with comments | « no previous file | components/sync/core_impl/sync_encryption_handler_impl.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_ 5 #ifndef COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_
6 #define COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_ 6 #define COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/time/time.h" 10 #include "base/time/time.h"
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 // error to call this when we don't have pending keys. 159 // error to call this when we don't have pending keys.
160 virtual void SetDecryptionPassphrase(const std::string& passphrase) = 0; 160 virtual void SetDecryptionPassphrase(const std::string& passphrase) = 0;
161 161
162 // Enables encryption of all datatypes. 162 // Enables encryption of all datatypes.
163 virtual void EnableEncryptEverything() = 0; 163 virtual void EnableEncryptEverything() = 0;
164 164
165 // Whether encryption of all datatypes is enabled. If false, only sensitive 165 // Whether encryption of all datatypes is enabled. If false, only sensitive
166 // types are encrypted. 166 // types are encrypted.
167 virtual bool IsEncryptEverythingEnabled() const = 0; 167 virtual bool IsEncryptEverythingEnabled() const = 0;
168 168
169 // Returns the current state of the passphrase needed to decrypt the
170 // bag of encryption keys in the nigori node.
171 virtual PassphraseType GetPassphraseType() const = 0;
172
173 // The set of types that are always encrypted. 169 // The set of types that are always encrypted.
174 static ModelTypeSet SensitiveTypes(); 170 static ModelTypeSet SensitiveTypes();
175 }; 171 };
176 172
177 } // namespace syncer 173 } // namespace syncer
178 174
179 #endif // COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_ 175 #endif // COMPONENTS_SYNC_CORE_SYNC_ENCRYPTION_HANDLER_H_
OLDNEW
« no previous file with comments | « no previous file | components/sync/core_impl/sync_encryption_handler_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698