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

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

Issue 629733002: replace OVERRIDE and FINAL with override and final in sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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/internal_api/sync_context_proxy_impl.h ('k') | sync/internal_api/sync_manager_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 SYNC_INTERNAL_API_SYNC_ENCRYPTION_HANDLER_IMPL_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_ENCRYPTION_HANDLER_IMPL_H_
6 #define SYNC_INTERNAL_API_SYNC_ENCRYPTION_HANDLER_IMPL_H_ 6 #define SYNC_INTERNAL_API_SYNC_ENCRYPTION_HANDLER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 public syncable::NigoriHandler { 47 public syncable::NigoriHandler {
48 public: 48 public:
49 SyncEncryptionHandlerImpl( 49 SyncEncryptionHandlerImpl(
50 UserShare* user_share, 50 UserShare* user_share,
51 Encryptor* encryptor, 51 Encryptor* encryptor,
52 const std::string& restored_key_for_bootstrapping, 52 const std::string& restored_key_for_bootstrapping,
53 const std::string& restored_keystore_key_for_bootstrapping); 53 const std::string& restored_keystore_key_for_bootstrapping);
54 virtual ~SyncEncryptionHandlerImpl(); 54 virtual ~SyncEncryptionHandlerImpl();
55 55
56 // SyncEncryptionHandler implementation. 56 // SyncEncryptionHandler implementation.
57 virtual void AddObserver(Observer* observer) OVERRIDE; 57 virtual void AddObserver(Observer* observer) override;
58 virtual void RemoveObserver(Observer* observer) OVERRIDE; 58 virtual void RemoveObserver(Observer* observer) override;
59 virtual void Init() OVERRIDE; 59 virtual void Init() override;
60 virtual void SetEncryptionPassphrase(const std::string& passphrase, 60 virtual void SetEncryptionPassphrase(const std::string& passphrase,
61 bool is_explicit) OVERRIDE; 61 bool is_explicit) override;
62 virtual void SetDecryptionPassphrase(const std::string& passphrase) OVERRIDE; 62 virtual void SetDecryptionPassphrase(const std::string& passphrase) override;
63 virtual void EnableEncryptEverything() OVERRIDE; 63 virtual void EnableEncryptEverything() override;
64 virtual bool EncryptEverythingEnabled() const OVERRIDE; 64 virtual bool EncryptEverythingEnabled() const override;
65 virtual PassphraseType GetPassphraseType() const OVERRIDE; 65 virtual PassphraseType GetPassphraseType() const override;
66 66
67 // NigoriHandler implementation. 67 // NigoriHandler implementation.
68 // Note: all methods are invoked while the caller holds a transaction. 68 // Note: all methods are invoked while the caller holds a transaction.
69 virtual void ApplyNigoriUpdate( 69 virtual void ApplyNigoriUpdate(
70 const sync_pb::NigoriSpecifics& nigori, 70 const sync_pb::NigoriSpecifics& nigori,
71 syncable::BaseTransaction* const trans) OVERRIDE; 71 syncable::BaseTransaction* const trans) override;
72 virtual void UpdateNigoriFromEncryptedTypes( 72 virtual void UpdateNigoriFromEncryptedTypes(
73 sync_pb::NigoriSpecifics* nigori, 73 sync_pb::NigoriSpecifics* nigori,
74 syncable::BaseTransaction* const trans) const OVERRIDE; 74 syncable::BaseTransaction* const trans) const override;
75 virtual bool NeedKeystoreKey( 75 virtual bool NeedKeystoreKey(
76 syncable::BaseTransaction* const trans) const OVERRIDE; 76 syncable::BaseTransaction* const trans) const override;
77 virtual bool SetKeystoreKeys( 77 virtual bool SetKeystoreKeys(
78 const google::protobuf::RepeatedPtrField<google::protobuf::string>& keys, 78 const google::protobuf::RepeatedPtrField<google::protobuf::string>& keys,
79 syncable::BaseTransaction* const trans) OVERRIDE; 79 syncable::BaseTransaction* const trans) override;
80 // Can be called from any thread. 80 // Can be called from any thread.
81 virtual ModelTypeSet GetEncryptedTypes( 81 virtual ModelTypeSet GetEncryptedTypes(
82 syncable::BaseTransaction* const trans) const OVERRIDE; 82 syncable::BaseTransaction* const trans) const override;
83 83
84 // Unsafe getters. Use only if sync is not up and running and there is no risk 84 // Unsafe getters. Use only if sync is not up and running and there is no risk
85 // of other threads calling this. 85 // of other threads calling this.
86 Cryptographer* GetCryptographerUnsafe(); 86 Cryptographer* GetCryptographerUnsafe();
87 ModelTypeSet GetEncryptedTypesUnsafe(); 87 ModelTypeSet GetEncryptedTypesUnsafe();
88 88
89 bool MigratedToKeystore(); 89 bool MigratedToKeystore();
90 base::Time migration_time() const; 90 base::Time migration_time() const;
91 base::Time custom_passphrase_time() const; 91 base::Time custom_passphrase_time() const;
92 92
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 base::Time custom_passphrase_time_; 306 base::Time custom_passphrase_time_;
307 307
308 base::WeakPtrFactory<SyncEncryptionHandlerImpl> weak_ptr_factory_; 308 base::WeakPtrFactory<SyncEncryptionHandlerImpl> weak_ptr_factory_;
309 309
310 DISALLOW_COPY_AND_ASSIGN(SyncEncryptionHandlerImpl); 310 DISALLOW_COPY_AND_ASSIGN(SyncEncryptionHandlerImpl);
311 }; 311 };
312 312
313 } // namespace syncer 313 } // namespace syncer
314 314
315 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_ENCRYPTION_HANDLER_IMPL_H_ 315 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_ENCRYPTION_HANDLER_IMPL_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_context_proxy_impl.h ('k') | sync/internal_api/sync_manager_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698