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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/sync_task_manager.h

Issue 1731483003: chrome: Add out-of-line copy ctors for complex classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
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 CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 bool ShouldTrackTaskToken() const; 129 bool ShouldTrackTaskToken() const;
130 130
131 private: 131 private:
132 struct PendingTask { 132 struct PendingTask {
133 base::Closure task; 133 base::Closure task;
134 Priority priority; 134 Priority priority;
135 int64_t seq; 135 int64_t seq;
136 136
137 PendingTask(); 137 PendingTask();
138 PendingTask(const base::Closure& task, Priority pri, int seq); 138 PendingTask(const base::Closure& task, Priority pri, int seq);
139 PendingTask(const PendingTask& other);
139 ~PendingTask(); 140 ~PendingTask();
140 }; 141 };
141 142
142 struct PendingTaskComparator { 143 struct PendingTaskComparator {
143 bool operator()(const PendingTask& left, 144 bool operator()(const PendingTask& left,
144 const PendingTask& right) const; 145 const PendingTask& right) const;
145 }; 146 };
146 147
147 // Non-static version of NotifyTaskDone. 148 // Non-static version of NotifyTaskDone.
148 void NotifyTaskDoneBody(scoped_ptr<SyncTaskToken> token, 149 void NotifyTaskDoneBody(scoped_ptr<SyncTaskToken> token,
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 209
209 base::WeakPtrFactory<SyncTaskManager> weak_ptr_factory_; 210 base::WeakPtrFactory<SyncTaskManager> weak_ptr_factory_;
210 211
211 DISALLOW_COPY_AND_ASSIGN(SyncTaskManager); 212 DISALLOW_COPY_AND_ASSIGN(SyncTaskManager);
212 }; 213 };
213 214
214 } // namespace drive_backend 215 } // namespace drive_backend
215 } // namespace sync_file_system 216 } // namespace sync_file_system
216 217
217 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_ 218 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698