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

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

Issue 298003003: [SyncFS] Wire TaskLogger to SyncTaskToken and SyncTaskManager (1/3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/sync_task_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 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 <queue> 8 #include <queue>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 const PendingTask& right) const; 134 const PendingTask& right) const;
135 }; 135 };
136 136
137 // Non-static version of NotifyTaskDone. 137 // Non-static version of NotifyTaskDone.
138 void NotifyTaskDoneBody(scoped_ptr<SyncTaskToken> token, 138 void NotifyTaskDoneBody(scoped_ptr<SyncTaskToken> token,
139 SyncStatusCode status); 139 SyncStatusCode status);
140 140
141 // Non-static version of UpdateBlockingFactor. 141 // Non-static version of UpdateBlockingFactor.
142 void UpdateBlockingFactorBody(scoped_ptr<SyncTaskToken> foreground_task_token, 142 void UpdateBlockingFactorBody(scoped_ptr<SyncTaskToken> foreground_task_token,
143 scoped_ptr<SyncTaskToken> background_task_token, 143 scoped_ptr<SyncTaskToken> background_task_token,
144 scoped_ptr<TaskLogger::TaskLog> task_log,
144 scoped_ptr<BlockingFactor> blocking_factor, 145 scoped_ptr<BlockingFactor> blocking_factor,
145 const Continuation& continuation); 146 const Continuation& continuation);
146 147
147 // This should be called when an async task needs to get a task token. 148 // This should be called when an async task needs to get a task token.
148 scoped_ptr<SyncTaskToken> GetToken(const tracked_objects::Location& from_here, 149 scoped_ptr<SyncTaskToken> GetToken(const tracked_objects::Location& from_here,
149 const SyncStatusCallback& callback); 150 const SyncStatusCallback& callback);
150 151
151 scoped_ptr<SyncTaskToken> GetTokenForBackgroundTask( 152 scoped_ptr<SyncTaskToken> GetTokenForBackgroundTask(
152 const tracked_objects::Location& from_here, 153 const tracked_objects::Location& from_here,
153 const SyncStatusCallback& callback, 154 const SyncStatusCallback& callback,
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
188 189
189 TaskDependencyManager dependency_manager_; 190 TaskDependencyManager dependency_manager_;
190 191
191 DISALLOW_COPY_AND_ASSIGN(SyncTaskManager); 192 DISALLOW_COPY_AND_ASSIGN(SyncTaskManager);
192 }; 193 };
193 194
194 } // namespace drive_backend 195 } // namespace drive_backend
195 } // namespace sync_file_system 196 } // namespace sync_file_system
196 197
197 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_ 198 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_MANAGER_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync_file_system/drive_backend/sync_task_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698