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

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

Issue 10878015: [Sync] Move keystore key handling to SyncEncryptionHandlerImpl (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 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 | Annotate | Revision Log
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_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 18 matching lines...) Expand all
29 virtual ~JsSyncEncryptionHandlerObserver(); 29 virtual ~JsSyncEncryptionHandlerObserver();
30 30
31 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler); 31 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler);
32 32
33 // SyncEncryptionHandlerObserver::Observer implementation. 33 // SyncEncryptionHandlerObserver::Observer implementation.
34 virtual void OnPassphraseRequired( 34 virtual void OnPassphraseRequired(
35 PassphraseRequiredReason reason, 35 PassphraseRequiredReason reason,
36 const sync_pb::EncryptedData& pending_keys) OVERRIDE; 36 const sync_pb::EncryptedData& pending_keys) OVERRIDE;
37 virtual void OnPassphraseAccepted() OVERRIDE; 37 virtual void OnPassphraseAccepted() OVERRIDE;
38 virtual void OnBootstrapTokenUpdated( 38 virtual void OnBootstrapTokenUpdated(
39 const std::string& bootstrap_token) OVERRIDE; 39 const std::string& bootstrap_token,
40 BootstrapTokenType type) OVERRIDE;
40 virtual void OnEncryptedTypesChanged( 41 virtual void OnEncryptedTypesChanged(
41 ModelTypeSet encrypted_types, 42 ModelTypeSet encrypted_types,
42 bool encrypt_everything) OVERRIDE; 43 bool encrypt_everything) OVERRIDE;
43 virtual void OnEncryptionComplete() OVERRIDE; 44 virtual void OnEncryptionComplete() OVERRIDE;
44 virtual void OnCryptographerStateChanged( 45 virtual void OnCryptographerStateChanged(
45 Cryptographer* cryptographer) OVERRIDE; 46 Cryptographer* cryptographer) OVERRIDE;
46 virtual void OnPassphraseStateChanged(PassphraseState state) OVERRIDE; 47 virtual void OnPassphraseStateChanged(PassphraseState state) OVERRIDE;
47 48
48 private: 49 private:
49 void HandleJsEvent(const tracked_objects::Location& from_here, 50 void HandleJsEvent(const tracked_objects::Location& from_here,
50 const std::string& name, const JsEventDetails& details); 51 const std::string& name, const JsEventDetails& details);
51 52
52 WeakHandle<JsEventHandler> event_handler_; 53 WeakHandle<JsEventHandler> event_handler_;
53 54
54 DISALLOW_COPY_AND_ASSIGN(JsSyncEncryptionHandlerObserver); 55 DISALLOW_COPY_AND_ASSIGN(JsSyncEncryptionHandlerObserver);
55 }; 56 };
56 57
57 } // namespace syncer 58 } // namespace syncer
58 59
59 #endif // SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_ 60 #endif // SYNC_INTERNAL_API_JS_SYNC_ENCRYPTION_HANDLER_OBSERVER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/debug_info_event_listener.cc ('k') | sync/internal_api/js_sync_encryption_handler_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698