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

Side by Side Diff: sync/sessions/model_type_registry.h

Issue 1177853002: [Sync] Add ability to save/restore Nigori to SyncEncryptionHandlerImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename in backend as well 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/internal_api/sync_manager_impl_unittest.cc ('k') | sync/sessions/model_type_registry.cc » ('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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ENGINE_MODEL_TYPE_REGISTRY_H_ 5 #ifndef SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_
6 #define SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ 6 #define SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 const sync_pb::EncryptedData& pending_keys) override; 76 const sync_pb::EncryptedData& pending_keys) override;
77 void OnPassphraseAccepted() override; 77 void OnPassphraseAccepted() override;
78 void OnBootstrapTokenUpdated(const std::string& bootstrap_token, 78 void OnBootstrapTokenUpdated(const std::string& bootstrap_token,
79 BootstrapTokenType type) override; 79 BootstrapTokenType type) override;
80 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types, 80 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types,
81 bool encrypt_everything) override; 81 bool encrypt_everything) override;
82 void OnEncryptionComplete() override; 82 void OnEncryptionComplete() override;
83 void OnCryptographerStateChanged(Cryptographer* cryptographer) override; 83 void OnCryptographerStateChanged(Cryptographer* cryptographer) override;
84 void OnPassphraseTypeChanged(PassphraseType type, 84 void OnPassphraseTypeChanged(PassphraseType type,
85 base::Time passphrase_time) override; 85 base::Time passphrase_time) override;
86 void OnLocalSetPassphraseEncryption(
87 const SyncEncryptionHandler::NigoriState& nigori_state) override;
86 88
87 // Gets the set of enabled types. 89 // Gets the set of enabled types.
88 ModelTypeSet GetEnabledTypes() const; 90 ModelTypeSet GetEnabledTypes() const;
89 91
90 // Simple getters. 92 // Simple getters.
91 UpdateHandlerMap* update_handler_map(); 93 UpdateHandlerMap* update_handler_map();
92 CommitContributorMap* commit_contributor_map(); 94 CommitContributorMap* commit_contributor_map();
93 DirectoryTypeDebugInfoEmitterMap* directory_type_debug_info_emitter_map(); 95 DirectoryTypeDebugInfoEmitterMap* directory_type_debug_info_emitter_map();
94 96
95 void RegisterDirectoryTypeDebugInfoObserver( 97 void RegisterDirectoryTypeDebugInfoObserver(
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 base::ObserverList<TypeDebugInfoObserver> type_debug_info_observers_; 155 base::ObserverList<TypeDebugInfoObserver> type_debug_info_observers_;
154 156
155 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_; 157 base::WeakPtrFactory<ModelTypeRegistry> weak_ptr_factory_;
156 158
157 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry); 159 DISALLOW_COPY_AND_ASSIGN(ModelTypeRegistry);
158 }; 160 };
159 161
160 } // namespace syncer 162 } // namespace syncer
161 163
162 #endif // SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_ 164 #endif // SYNC_ENGINE_MODEL_TYPE_REGISTRY_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl_unittest.cc ('k') | sync/sessions/model_type_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698