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

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

Issue 509853003: Code refactor related to WeakPtrFactory in src/sync module (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: applied the WeakPtrFactory changes for src/sync module Created 6 years, 3 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 | « AUTHORS ('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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 126
127 bool InitTypeRootNode(ModelType type); 127 bool InitTypeRootNode(ModelType type);
128 void InitBookmarkFolder(const std::string& folder); 128 void InitBookmarkFolder(const std::string& folder);
129 129
130 UserShare share_; 130 UserShare share_;
131 ObserverList<SyncManager::Observer> observers_; 131 ObserverList<SyncManager::Observer> observers_;
132 132
133 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler_; 133 scoped_ptr<UnrecoverableErrorHandler> unrecoverable_error_handler_;
134 ReportUnrecoverableErrorFunction report_unrecoverable_error_function_; 134 ReportUnrecoverableErrorFunction report_unrecoverable_error_function_;
135 135
136 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_;
137
138 scoped_ptr<SyncEncryptionHandler> dummy_handler_; 136 scoped_ptr<SyncEncryptionHandler> dummy_handler_;
139 137
140 bool initialized_; 138 bool initialized_;
141 139
140 base::WeakPtrFactory<SyncRollbackManagerBase> weak_ptr_factory_;
141
142 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase); 142 DISALLOW_COPY_AND_ASSIGN(SyncRollbackManagerBase);
143 }; 143 };
144 144
145 } // namespace syncer 145 } // namespace syncer
146 146
147 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_ 147 #endif // SYNC_INTERNAL_API_SYNC_ROLLBACK_MANAGER_BASE_H_
OLDNEW
« no previous file with comments | « AUTHORS ('k') | sync/internal_api/sync_rollback_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698