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

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

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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 | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_rollback_manager_base.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_ROLLBACK_MANAGER_BASE_H_ 5 #ifndef SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_
6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ 6 #define SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, 85 const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
86 syncable::BaseTransaction* trans, 86 syncable::BaseTransaction* trans,
87 std::vector<int64>* entries_changed) override; 87 std::vector<int64>* entries_changed) override;
88 88
89 // syncable::TransactionObserver implementation. 89 // syncable::TransactionObserver implementation.
90 void OnTransactionWrite( 90 void OnTransactionWrite(
91 const syncable::ImmutableWriteTransactionInfo& write_transaction_info, 91 const syncable::ImmutableWriteTransactionInfo& write_transaction_info,
92 ModelTypeSet models_with_changes) override; 92 ModelTypeSet models_with_changes) override;
93 93
94 protected: 94 protected:
95 ObserverList<SyncManager::Observer>* GetObservers(); 95 base::ObserverList<SyncManager::Observer>* GetObservers();
96 96
97 // Initialize sync backup DB. 97 // Initialize sync backup DB.
98 bool InitInternal( 98 bool InitInternal(
99 const base::FilePath& database_location, 99 const base::FilePath& database_location,
100 InternalComponentsFactory* internal_components_factory, 100 InternalComponentsFactory* internal_components_factory,
101 InternalComponentsFactory::StorageOption storage, 101 InternalComponentsFactory::StorageOption storage,
102 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler, 102 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler,
103 ReportUnrecoverableErrorFunction report_unrecoverable_error_function); 103 ReportUnrecoverableErrorFunction report_unrecoverable_error_function);
104 104
105 void RegisterDirectoryTypeDebugInfoObserver( 105 void RegisterDirectoryTypeDebugInfoObserver(
(...skipping 13 matching lines...) Expand all
119 void NotifyInitializationFailure(); 119 void NotifyInitializationFailure();
120 120
121 bool InitBackupDB(const base::FilePath& sync_folder, 121 bool InitBackupDB(const base::FilePath& sync_folder,
122 InternalComponentsFactory* internal_components_factory, 122 InternalComponentsFactory* internal_components_factory,
123 InternalComponentsFactory::StorageOption storage); 123 InternalComponentsFactory::StorageOption storage);
124 124
125 bool InitTypeRootNode(ModelType type); 125 bool InitTypeRootNode(ModelType type);
126 void InitBookmarkFolder(const std::string& folder); 126 void InitBookmarkFolder(const std::string& folder);
127 127
128 UserShare share_; 128 UserShare share_;
129 ObserverList<SyncManager::Observer> observers_; 129 base::ObserverList<SyncManager::Observer> observers_;
130 130
131 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler_; 131 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler_;
132 ReportUnrecoverableErrorFunction report_unrecoverable_error_function_; 132 ReportUnrecoverableErrorFunction report_unrecoverable_error_function_;
133 133
134 scoped_ptr<SyncEncryptionHandler> dummy_handler_; 134 scoped_ptr<SyncEncryptionHandler> dummy_handler_;
135 135
136 bool initialized_; 136 bool initialized_;
137 137
138 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_; 138 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_;
139 139
140 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase); 140 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase);
141 }; 141 };
142 142
143 } // namespace syncer 143 } // namespace syncer
144 144
145 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ 145 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « sync/internal_api/sync_manager_impl.h ('k') | sync/internal_api/sync_rollback_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698