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

Side by Side Diff: sync/test/fake_sync_encryption_handler.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 | « sync/test/fake_server/fake_server.h ('k') | third_party/mojo/src/mojo/edk/js/handle.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 (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_SYNCABLE_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ 5 #ifndef SYNC_SYNCABLE_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_
6 #define SYNC_SYNCABLE_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ 6 #define SYNC_SYNCABLE_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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 bool NeedKeystoreKey(syncable::BaseTransaction* const trans) const override; 48 bool NeedKeystoreKey(syncable::BaseTransaction* const trans) const override;
49 bool SetKeystoreKeys( 49 bool SetKeystoreKeys(
50 const google::protobuf::RepeatedPtrField<google::protobuf::string>& keys, 50 const google::protobuf::RepeatedPtrField<google::protobuf::string>& keys,
51 syncable::BaseTransaction* const trans) override; 51 syncable::BaseTransaction* const trans) override;
52 ModelTypeSet GetEncryptedTypes( 52 ModelTypeSet GetEncryptedTypes(
53 syncable::BaseTransaction* const trans) const override; 53 syncable::BaseTransaction* const trans) const override;
54 54
55 Cryptographer* cryptographer() { return &cryptographer_; } 55 Cryptographer* cryptographer() { return &cryptographer_; }
56 56
57 private: 57 private:
58 ObserverList<SyncEncryptionHandler::Observer> observers_; 58 base::ObserverList<SyncEncryptionHandler::Observer> observers_;
59 ModelTypeSet encrypted_types_; 59 ModelTypeSet encrypted_types_;
60 bool encrypt_everything_; 60 bool encrypt_everything_;
61 PassphraseType passphrase_type_; 61 PassphraseType passphrase_type_;
62 62
63 FakeEncryptor encryptor_; 63 FakeEncryptor encryptor_;
64 Cryptographer cryptographer_; 64 Cryptographer cryptographer_;
65 std::string keystore_key_; 65 std::string keystore_key_;
66 }; 66 };
67 67
68 } // namespace syncer 68 } // namespace syncer
69 69
70 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_ 70 #endif // SYNC_INTERNAL_API_PUBLIC_TEST_FAKE_SYNC_ENCRYPTION_HANDLER_H_
OLDNEW
« no previous file with comments | « sync/test/fake_server/fake_server.h ('k') | third_party/mojo/src/mojo/edk/js/handle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698