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

Side by Side Diff: chrome/browser/sync/glue/sync_backend_host_impl.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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 5 #ifndef CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 6 #define CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/compiler_specific.h" 12 #include "base/compiler_specific.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "base/memory/scoped_ptr.h"
14 #include "base/memory/weak_ptr.h" 14 #include "base/memory/weak_ptr.h"
15 #include "base/threading/thread.h" 15 #include "base/threading/thread.h"
16 #include "chrome/browser/sync/glue/extensions_activity_monitor.h" 16 #include "chrome/browser/sync/glue/extensions_activity_monitor.h"
17 #include "chrome/browser/sync/glue/sync_backend_host.h" 17 #include "chrome/browser/sync/glue/sync_backend_host.h"
18 #include "components/invalidation/public/invalidation_handler.h" 18 #include "components/invalidation/public/invalidation_handler.h"
19 #include "components/sync_driver/backend_data_type_configurer.h" 19 #include "components/sync_driver/backend_data_type_configurer.h"
20 #include "content/public/browser/notification_observer.h" 20 #include "content/public/browser/notification_observer.h"
21 #include "content/public/browser/notification_registrar.h" 21 #include "content/public/browser/notification_registrar.h"
22 #include "sync/internal_api/public/base/model_type.h" 22 #include "sync/internal_api/public/base/model_type.h"
23 #include "sync/internal_api/public/configure_reason.h" 23 #include "sync/internal_api/public/configure_reason.h"
24 #include "sync/internal_api/public/sessions/sync_session_snapshot.h" 24 #include "sync/internal_api/public/sessions/sync_session_snapshot.h"
25 #include "sync/internal_api/public/sessions/type_debug_info_observer.h" 25 #include "sync/internal_api/public/sessions/type_debug_info_observer.h"
26 #include "sync/internal_api/public/sync_manager.h" 26 #include "sync/internal_api/public/sync_manager.h"
27 #include "sync/internal_api/public/util/unrecoverable_error_handler.h"
28 #include "sync/internal_api/public/util/weak_handle.h" 27 #include "sync/internal_api/public/util/weak_handle.h"
29 #include "sync/protocol/encryption.pb.h" 28 #include "sync/protocol/encryption.pb.h"
30 #include "sync/protocol/sync_protocol_error.h" 29 #include "sync/protocol/sync_protocol_error.h"
31 #include "sync/util/extensions_activity.h" 30 #include "sync/util/extensions_activity.h"
32 31
33 class GURL; 32 class GURL;
34 class Profile; 33 class Profile;
35 34
36 namespace base { 35 namespace base {
37 class MessageLoop; 36 class MessageLoop;
38 } 37 }
39 38
40 namespace invalidation { 39 namespace invalidation {
41 class InvalidationService; 40 class InvalidationService;
42 } 41 }
43 42
44 namespace syncer { 43 namespace syncer {
45 class NetworkResources; 44 class NetworkResources;
46 class SyncManagerFactory; 45 class SyncManagerFactory;
46 class UnrecoverableErrorHandler;
47 } 47 }
48 48
49 namespace sync_driver { 49 namespace sync_driver {
50 class SyncPrefs; 50 class SyncPrefs;
51 } 51 }
52 52
53 namespace browser_sync { 53 namespace browser_sync {
54 54
55 class ChangeProcessor; 55 class ChangeProcessor;
56 class SyncBackendHostCore; 56 class SyncBackendHostCore;
(...skipping 22 matching lines...) Expand all
79 79
80 // SyncBackendHost implementation. 80 // SyncBackendHost implementation.
81 void Initialize( 81 void Initialize(
82 sync_driver::SyncFrontend* frontend, 82 sync_driver::SyncFrontend* frontend,
83 scoped_ptr<base::Thread> sync_thread, 83 scoped_ptr<base::Thread> sync_thread,
84 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler, 84 const syncer::WeakHandle<syncer::JsEventHandler>& event_handler,
85 const GURL& service_url, 85 const GURL& service_url,
86 const syncer::SyncCredentials& credentials, 86 const syncer::SyncCredentials& credentials,
87 bool delete_sync_data_folder, 87 bool delete_sync_data_folder,
88 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory, 88 scoped_ptr<syncer::SyncManagerFactory> sync_manager_factory,
89 scoped_ptr<syncer::UnrecoverableErrorHandler> unrecoverable_error_handler, 89 const syncer::WeakHandle<syncer::UnrecoverableErrorHandler>&
90 unrecoverable_error_handler,
90 const base::Closure& report_unrecoverable_error_function, 91 const base::Closure& report_unrecoverable_error_function,
91 syncer::NetworkResources* network_resources, 92 syncer::NetworkResources* network_resources,
92 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state) 93 scoped_ptr<syncer::SyncEncryptionHandler::NigoriState> saved_nigori_state)
93 override; 94 override;
94 void UpdateCredentials(const syncer::SyncCredentials& credentials) override; 95 void UpdateCredentials(const syncer::SyncCredentials& credentials) override;
95 void StartSyncingWithServer() override; 96 void StartSyncingWithServer() override;
96 void SetEncryptionPassphrase(const std::string& passphrase, 97 void SetEncryptionPassphrase(const std::string& passphrase,
97 bool is_explicit) override; 98 bool is_explicit) override;
98 bool SetDecryptionPassphrase(const std::string& passphrase) override 99 bool SetDecryptionPassphrase(const std::string& passphrase) override
99 WARN_UNUSED_RESULT; 100 WARN_UNUSED_RESULT;
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after
370 bool invalidation_handler_registered_; 371 bool invalidation_handler_registered_;
371 372
372 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_; 373 base::WeakPtrFactory<SyncBackendHostImpl> weak_ptr_factory_;
373 374
374 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl); 375 DISALLOW_COPY_AND_ASSIGN(SyncBackendHostImpl);
375 }; 376 };
376 377
377 } // namespace browser_sync 378 } // namespace browser_sync
378 379
379 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_ 380 #endif // CHROME_BROWSER_SYNC_GLUE_SYNC_BACKEND_HOST_IMPL_H_
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host_core.cc ('k') | chrome/browser/sync/glue/sync_backend_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698