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/test/fake_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
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 COMPONENTS_SYNC_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ 5 #ifndef COMPONENTS_SYNC_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_
6 #define COMPONENTS_SYNC_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ 6 #define COMPONENTS_SYNC_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 19 matching lines...) Expand all
30 30
31 // SyncEncryptionHandler implementation. 31 // SyncEncryptionHandler implementation.
32 void AddObserver(Observer* observer) override; 32 void AddObserver(Observer* observer) override;
33 void RemoveObserver(Observer* observer) override; 33 void RemoveObserver(Observer* observer) override;
34 void Init() override; 34 void Init() override;
35 void SetEncryptionPassphrase(const std::string& passphrase, 35 void SetEncryptionPassphrase(const std::string& passphrase,
36 bool is_explicit) override; 36 bool is_explicit) override;
37 void SetDecryptionPassphrase(const std::string& passphrase) override; 37 void SetDecryptionPassphrase(const std::string& passphrase) override;
38 void EnableEncryptEverything() override; 38 void EnableEncryptEverything() override;
39 bool IsEncryptEverythingEnabled() const override; 39 bool IsEncryptEverythingEnabled() const override;
40 PassphraseType GetPassphraseType() const override; 40 PassphraseType GetPassphraseType(
41 syncable::BaseTransaction* const trans) const override;
41 42
42 // NigoriHandler implemenation. 43 // NigoriHandler implemenation.
43 void ApplyNigoriUpdate(const sync_pb::NigoriSpecifics& nigori, 44 void ApplyNigoriUpdate(const sync_pb::NigoriSpecifics& nigori,
44 syncable::BaseTransaction* const trans) override; 45 syncable::BaseTransaction* const trans) override;
45 void UpdateNigoriFromEncryptedTypes( 46 void UpdateNigoriFromEncryptedTypes(
46 sync_pb::NigoriSpecifics* nigori, 47 sync_pb::NigoriSpecifics* nigori,
47 syncable::BaseTransaction* const trans) const override; 48 syncable::BaseTransaction* const trans) const override;
48 bool NeedKeystoreKey(syncable::BaseTransaction* const trans) const override; 49 bool NeedKeystoreKey(syncable::BaseTransaction* const trans) const override;
49 bool SetKeystoreKeys( 50 bool SetKeystoreKeys(
50 const google::protobuf::RepeatedPtrField<google::protobuf::string>& keys, 51 const google::protobuf::RepeatedPtrField<google::protobuf::string>& keys,
(...skipping 10 matching lines...) Expand all
61 PassphraseType passphrase_type_; 62 PassphraseType passphrase_type_;
62 63
63 FakeEncryptor encryptor_; 64 FakeEncryptor encryptor_;
64 Cryptographer cryptographer_; 65 Cryptographer cryptographer_;
65 std::string keystore_key_; 66 std::string keystore_key_;
66 }; 67 };
67 68
68 } // namespace syncer 69 } // namespace syncer
69 70
70 #endif // COMPONENTS_SYNC_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ 71 #endif // COMPONENTS_SYNC_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_
OLDNEW
« no previous file with comments | « components/sync/syncable/nigori_handler.h ('k') | components/sync/test/fake_sync_encryption_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698