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

Side by Side Diff: sync/internal_api/js_sync_encryption_handler_observer.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: 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
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_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ 5 #ifndef SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_
6 #define SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ 6 #define SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 27 matching lines...) Expand all
38 const sync_pb::EncryptedData& pending_keys) override; 38 const sync_pb::EncryptedData& pending_keys) override;
39 void OnPassphraseAccepted() override; 39 void OnPassphraseAccepted() override;
40 void OnBootstrapTokenUpdated(const std::string& bootstrap_token, 40 void OnBootstrapTokenUpdated(const std::string& bootstrap_token,
41 BootstrapTokenType type) override; 41 BootstrapTokenType type) override;
42 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types, 42 void OnEncryptedTypesChanged(ModelTypeSet encrypted_types,
43 bool encrypt_everything) override; 43 bool encrypt_everything) override;
44 void OnEncryptionComplete() override; 44 void OnEncryptionComplete() override;
45 void OnCryptographerStateChanged(Cryptographer* cryptographer) override; 45 void OnCryptographerStateChanged(Cryptographer* cryptographer) override;
46 void OnPassphraseTypeChanged(PassphraseType type, 46 void OnPassphraseTypeChanged(PassphraseType type,
47 base::Time explicit_passphrase_time) override; 47 base::Time explicit_passphrase_time) override;
48 void OnLocalSetCustomPassphrase(
49 const SyncEncryptionHandler::NigoriState& nigori_state) override;
48 50
49 private: 51 private:
50 void HandleJsEvent(const tracked_objects::Location& from_here, 52 void HandleJsEvent(const tracked_objects::Location& from_here,
51 const std::string& name, const JsEventDetails& details); 53 const std::string& name, const JsEventDetails& details);
52 54
53 WeakHandle<JsEventHandler> event_handler_; 55 WeakHandle<JsEventHandler> event_handler_;
54 56
55 DISALLOW_COPY_AND_ASSIGN(JsSyncEncryptionHandlerObserver); 57 DISALLOW_COPY_AND_ASSIGN(JsSyncEncryptionHandlerObserver);
56 }; 58 };
57 59
58 } // namespace syncer 60 } // namespace syncer
59 61
60 #endif // SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ 62 #endif // SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698