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

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

Issue 10804039: Make SyncBackendRegistrar aware of loaded data (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase 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 28 matching lines...) Expand all
39 PassphraseRequiredReason reason, 39 PassphraseRequiredReason reason,
40 const sync_pb::EncryptedData& pending_keys) OVERRIDE; 40 const sync_pb::EncryptedData& pending_keys) OVERRIDE;
41 virtual void OnPassphraseAccepted() OVERRIDE; 41 virtual void OnPassphraseAccepted() OVERRIDE;
42 virtual void OnBootstrapTokenUpdated( 42 virtual void OnBootstrapTokenUpdated(
43 const std::string& bootstrap_token) OVERRIDE; 43 const std::string& bootstrap_token) OVERRIDE;
44 virtual void OnEncryptedTypesChanged( 44 virtual void OnEncryptedTypesChanged(
45 ModelTypeSet encrypted_types, 45 ModelTypeSet encrypted_types,
46 bool encrypt_everything) OVERRIDE; 46 bool encrypt_everything) OVERRIDE;
47 virtual void OnEncryptionComplete() OVERRIDE; 47 virtual void OnEncryptionComplete() OVERRIDE;
48 virtual void OnInitializationComplete( 48 virtual void OnInitializationComplete(
49 const WeakHandle<JsBackend>& js_backend, bool success) OVERRIDE; 49 const WeakHandle<JsBackend>& js_backend, bool success,
50 syncer::ModelTypeSet restored_types) OVERRIDE;
50 virtual void OnStopSyncingPermanently() OVERRIDE; 51 virtual void OnStopSyncingPermanently() OVERRIDE;
51 virtual void OnActionableError( 52 virtual void OnActionableError(
52 const SyncProtocolError& sync_protocol_error) OVERRIDE; 53 const SyncProtocolError& sync_protocol_error) OVERRIDE;
53 54
54 private: 55 private:
55 void HandleJsEvent(const tracked_objects::Location& from_here, 56 void HandleJsEvent(const tracked_objects::Location& from_here,
56 const std::string& name, const JsEventDetails& details); 57 const std::string& name, const JsEventDetails& details);
57 58
58 WeakHandle<JsEventHandler> event_handler_; 59 WeakHandle<JsEventHandler> event_handler_;
59 60
60 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver); 61 DISALLOW_COPY_AND_ASSIGN(JsSyncManagerObserver);
61 }; 62 };
62 63
63 } // namespace syncer 64 } // namespace syncer
64 65
65 #endif // SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_ 66 #endif // SYNC_INTERNAL_API_JS_SYNC_MANAGER_OBSERVER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/internal_components_factory_impl.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