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

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

Issue 152013003: Split up SyncEngineEventListener callbacks (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: One more forward declaration Created 6 years, 10 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 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_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "net/base/network_change_notifier.h" 11 #include "net/base/network_change_notifier.h"
12 #include "sync/base/sync_export.h" 12 #include "sync/base/sync_export.h"
13 #include "sync/engine/all_status.h" 13 #include "sync/engine/all_status.h"
14 #include "sync/engine/net/server_connection_manager.h" 14 #include "sync/engine/net/server_connection_manager.h"
15 #include "sync/engine/sync_engine_event.h" 15 #include "sync/engine/sync_engine_event_listener.h"
16 #include "sync/engine/traffic_recorder.h" 16 #include "sync/engine/traffic_recorder.h"
17 #include "sync/internal_api/change_reorder_buffer.h" 17 #include "sync/internal_api/change_reorder_buffer.h"
18 #include "sync/internal_api/debug_info_event_listener.h" 18 #include "sync/internal_api/debug_info_event_listener.h"
19 #include "sync/internal_api/js_mutation_event_observer.h" 19 #include "sync/internal_api/js_mutation_event_observer.h"
20 #include "sync/internal_api/js_sync_encryption_handler_observer.h" 20 #include "sync/internal_api/js_sync_encryption_handler_observer.h"
21 #include "sync/internal_api/js_sync_manager_observer.h" 21 #include "sync/internal_api/js_sync_manager_observer.h"
22 #include "sync/internal_api/public/sync_manager.h" 22 #include "sync/internal_api/public/sync_manager.h"
23 #include "sync/internal_api/public/user_share.h" 23 #include "sync/internal_api/public/user_share.h"
24 #include "sync/internal_api/sync_encryption_handler_impl.h" 24 #include "sync/internal_api/sync_encryption_handler_impl.h"
25 #include "sync/js/js_backend.h" 25 #include "sync/js/js_backend.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 virtual void OnCryptographerStateChanged( 129 virtual void OnCryptographerStateChanged(
130 Cryptographer* cryptographer) OVERRIDE; 130 Cryptographer* cryptographer) OVERRIDE;
131 virtual void OnPassphraseTypeChanged( 131 virtual void OnPassphraseTypeChanged(
132 PassphraseType type, 132 PassphraseType type,
133 base::Time explicit_passphrase_time) OVERRIDE; 133 base::Time explicit_passphrase_time) OVERRIDE;
134 134
135 static int GetDefaultNudgeDelay(); 135 static int GetDefaultNudgeDelay();
136 static int GetPreferencesNudgeDelay(); 136 static int GetPreferencesNudgeDelay();
137 137
138 // SyncEngineEventListener implementation. 138 // SyncEngineEventListener implementation.
139 virtual void OnSyncEngineEvent(const SyncEngineEvent& event) OVERRIDE; 139 virtual void OnSyncCycleEvent(const SyncCycleEvent& event) OVERRIDE;
140 virtual void OnActionableError(const SyncProtocolError& error) OVERRIDE;
141 virtual void OnRetryTimeChanged(base::Time retry_time) OVERRIDE;
142 virtual void OnThrottledTypesChanged(ModelTypeSet throttled_types) OVERRIDE;
140 143
141 // ServerConnectionEventListener implementation. 144 // ServerConnectionEventListener implementation.
142 virtual void OnServerConnectionEvent( 145 virtual void OnServerConnectionEvent(
143 const ServerConnectionEvent& event) OVERRIDE; 146 const ServerConnectionEvent& event) OVERRIDE;
144 147
145 // JsBackend implementation. 148 // JsBackend implementation.
146 virtual void SetJsEventHandler( 149 virtual void SetJsEventHandler(
147 const WeakHandle<JsEventHandler>& event_handler) OVERRIDE; 150 const WeakHandle<JsEventHandler>& event_handler) OVERRIDE;
148 virtual void ProcessJsMessage( 151 virtual void ProcessJsMessage(
149 const std::string& name, const JsArgList& args, 152 const std::string& name, const JsArgList& args,
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_; 377 scoped_ptr<SyncEncryptionHandlerImpl> sync_encryption_handler_;
375 378
376 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_; 379 base::WeakPtrFactory<SyncManagerImpl> weak_ptr_factory_;
377 380
378 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl); 381 DISALLOW_COPY_AND_ASSIGN(SyncManagerImpl);
379 }; 382 };
380 383
381 } // namespace syncer 384 } // namespace syncer
382 385
383 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_ 386 #endif // SYNC_INTERNAL_API_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « sync/internal_api/public/sessions/model_neutral_state.h ('k') | sync/internal_api/sync_manager_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698