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

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

Issue 10827266: [Sync] Add SyncEncryptionHandler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Created 8 years, 4 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_MANAGER_OBSERVER_H_ 5 #ifndef SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_
6 #define SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ 6 #define SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 17 matching lines...) Expand all
28 JsSyncManagerObserver(); 28 JsSyncManagerObserver();
29 virtual ~JsSyncManagerObserver(); 29 virtual ~JsSyncManagerObserver();
30 30
31 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler); 31 void SetJsEventHandler(const WeakHandle<JsEventHandler>& event_handler);
32 32
33 // SyncManager::Observer implementation. 33 // SyncManager::Observer implementation.
34 virtual void OnSyncCycleCompleted( 34 virtual void OnSyncCycleCompleted(
35 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE; 35 const sessions::SyncSessionSnapshot& snapshot) OVERRIDE;
36 virtual void OnConnectionStatusChange(ConnectionStatus status) OVERRIDE; 36 virtual void OnConnectionStatusChange(ConnectionStatus status) OVERRIDE;
37 virtual void OnUpdatedToken(const std::string& token) OVERRIDE; 37 virtual void OnUpdatedToken(const std::string& token) OVERRIDE;
38 virtual void OnPassphraseRequired(
39 PassphraseRequiredReason reason,
40 const sync_pb::EncryptedData& pending_keys) OVERRIDE;
41 virtual void OnPassphraseAccepted() OVERRIDE;
42 virtual void OnBootstrapTokenUpdated(
43 const std::string& bootstrap_token) OVERRIDE;
44 virtual void OnEncryptedTypesChanged(
45 ModelTypeSet encrypted_types,
46 bool encrypt_everything) OVERRIDE;
47 virtual void OnEncryptionComplete() OVERRIDE;
48 virtual void OnInitializationComplete( 38 virtual void OnInitializationComplete(
49 const WeakHandle<JsBackend>& js_backend, bool success, 39 const WeakHandle<JsBackend>& js_backend, bool success,
50 syncer::ModelTypeSet restored_types) OVERRIDE; 40 syncer::ModelTypeSet restored_types) OVERRIDE;
51 virtual void OnStopSyncingPermanently() OVERRIDE; 41 virtual void OnStopSyncingPermanently() OVERRIDE;
52 virtual void OnActionableError( 42 virtual void OnActionableError(
53 const SyncProtocolError& sync_protocol_error) OVERRIDE; 43 const SyncProtocolError& sync_protocol_error) OVERRIDE;
54 44
55 private: 45 private:
56 void HandleJsEvent(const tracked_objects::Location& from_here, 46 void HandleJsEvent(const tracked_objects::Location& from_here,
57 const std::string& name, const JsEventDetails& details); 47 const std::string& name, const JsEventDetails& details);
58 48
59 WeakHandle<JsEventHandler> event_handler_; 49 WeakHandle<JsEventHandler> event_handler_;
60 50
61 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); 51 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver);
62 }; 52 };
63 53
64 } // namespace syncer 54 } // namespace syncer
65 55
66 #endif // SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ 56 #endif // SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/js_sync_encryption_handler_observer_unittest.cc ('k') | sync/internal_api/js_sync_manager_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698