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

Side by Side Diff: sync/internal_api/public/sync_manager.h

Issue 1275743002: [Sync] Remove backend unrecoverable error handler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix leak Created 5 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | sync/internal_api/sync_backup_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_SYNC_MANAGER_H_ 5 #ifndef SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 6 #define SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 12 matching lines...) Expand all
23 #include "sync/internal_api/public/change_record.h" 23 #include "sync/internal_api/public/change_record.h"
24 #include "sync/internal_api/public/configure_reason.h" 24 #include "sync/internal_api/public/configure_reason.h"
25 #include "sync/internal_api/public/engine/model_safe_worker.h" 25 #include "sync/internal_api/public/engine/model_safe_worker.h"
26 #include "sync/internal_api/public/engine/sync_status.h" 26 #include "sync/internal_api/public/engine/sync_status.h"
27 #include "sync/internal_api/public/events/protocol_event.h" 27 #include "sync/internal_api/public/events/protocol_event.h"
28 #include "sync/internal_api/public/http_post_provider_factory.h" 28 #include "sync/internal_api/public/http_post_provider_factory.h"
29 #include "sync/internal_api/public/internal_components_factory.h" 29 #include "sync/internal_api/public/internal_components_factory.h"
30 #include "sync/internal_api/public/shutdown_reason.h" 30 #include "sync/internal_api/public/shutdown_reason.h"
31 #include "sync/internal_api/public/sync_context_proxy.h" 31 #include "sync/internal_api/public/sync_context_proxy.h"
32 #include "sync/internal_api/public/sync_encryption_handler.h" 32 #include "sync/internal_api/public/sync_encryption_handler.h"
33 #include "sync/internal_api/public/util/unrecoverable_error_handler.h"
34 #include "sync/internal_api/public/util/weak_handle.h" 33 #include "sync/internal_api/public/util/weak_handle.h"
35 #include "sync/protocol/sync_protocol_error.h" 34 #include "sync/protocol/sync_protocol_error.h"
36 35
37 class GURL; 36 class GURL;
38 37
39 namespace sync_pb { 38 namespace sync_pb {
40 class EncryptedData; 39 class EncryptedData;
41 } // namespace sync_pb 40 } // namespace sync_pb
42 41
43 namespace syncer { 42 namespace syncer {
44 43
45 class BaseTransaction; 44 class BaseTransaction;
46 class CancelationSignal; 45 class CancelationSignal;
47 class DataTypeDebugInfoListener; 46 class DataTypeDebugInfoListener;
48 class Encryptor; 47 class Encryptor;
49 class ExtensionsActivity; 48 class ExtensionsActivity;
50 class InternalComponentsFactory; 49 class InternalComponentsFactory;
51 class JsBackend; 50 class JsBackend;
52 class JsEventHandler; 51 class JsEventHandler;
53 class ProtocolEvent; 52 class ProtocolEvent;
54 class SyncEncryptionHandler; 53 class SyncEncryptionHandler;
55 class SyncScheduler; 54 class SyncScheduler;
56 class TypeDebugInfoObserver; 55 class TypeDebugInfoObserver;
56 class UnrecoverableErrorHandler;
57 struct Experiments; 57 struct Experiments;
58 struct UserShare; 58 struct UserShare;
59 59
60 namespace sessions { 60 namespace sessions {
61 class SyncSessionSnapshot; 61 class SyncSessionSnapshot;
62 } // namespace sessions 62 } // namespace sessions
63 63
64 // Used by SyncManager::OnConnectionStatusChange(). 64 // Used by SyncManager::OnConnectionStatusChange().
65 enum ConnectionStatus { 65 enum ConnectionStatus {
66 CONNECTION_NOT_ATTEMPTED, 66 CONNECTION_NOT_ATTEMPTED,
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
253 253
254 // Used to boostrap the cryptographer. 254 // Used to boostrap the cryptographer.
255 std::string restored_key_for_bootstrapping; 255 std::string restored_key_for_bootstrapping;
256 std::string restored_keystore_key_for_bootstrapping; 256 std::string restored_keystore_key_for_bootstrapping;
257 257
258 scoped_ptr<InternalComponentsFactory> internal_components_factory; 258 scoped_ptr<InternalComponentsFactory> internal_components_factory;
259 259
260 // Must outlive SyncManager. 260 // Must outlive SyncManager.
261 Encryptor* encryptor; 261 Encryptor* encryptor;
262 262
263 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler; 263 WeakHandle<UnrecoverableErrorHandler> unrecoverable_error_handler;
264 base::Closure report_unrecoverable_error_function; 264 base::Closure report_unrecoverable_error_function;
265 265
266 // Carries shutdown requests across threads and will be used to cut short 266 // Carries shutdown requests across threads and will be used to cut short
267 // any network I/O and tell the syncer to exit early. 267 // any network I/O and tell the syncer to exit early.
268 // 268 //
269 // Must outlive SyncManager. 269 // Must outlive SyncManager.
270 CancelationSignal* cancelation_signal; 270 CancelationSignal* cancelation_signal;
271 271
272 // Optional nigori state to be restored. 272 // Optional nigori state to be restored.
273 scoped_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state; 273 scoped_ptr<SyncEncryptionHandler::NigoriState> saved_nigori_state;
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 // 406 //
407 // This is an asynchronous operation that requires interaction with the sync 407 // This is an asynchronous operation that requires interaction with the sync
408 // server. The operation will automatically be retried with backoff until it 408 // server. The operation will automatically be retried with backoff until it
409 // completes successfully or sync is shutdown. 409 // completes successfully or sync is shutdown.
410 virtual void ClearServerData(const ClearServerDataCallback& callback) = 0; 410 virtual void ClearServerData(const ClearServerDataCallback& callback) = 0;
411 }; 411 };
412 412
413 } // namespace syncer 413 } // namespace syncer
414 414
415 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_ 415 #endif // SYNC_INTERNAL_API_PUBLIC_SYNC_MANAGER_H_
OLDNEW
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | sync/internal_api/sync_backup_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698