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

Unified Diff: chrome/browser/sync_file_system/drive_backend/sync_task_token.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, 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/sync_file_system/drive_backend/sync_task_token.h
diff --git a/chrome/browser/sync_file_system/drive_backend/sync_task_token.h b/chrome/browser/sync_file_system/drive_backend/sync_task_token.h
index 2950b8c1327a9f6ba764dd6814becdcdcbf0e27d..3c12050d5043cbb89c71f96783c87ef21b98282b 100644
--- a/chrome/browser/sync_file_system/drive_backend/sync_task_token.h
+++ b/chrome/browser/sync_file_system/drive_backend/sync_task_token.h
@@ -10,6 +10,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "chrome/browser/sync_file_system/sync_callbacks.h"
+#include "chrome/browser/sync_file_system/task_logger.h"
namespace sync_file_system {
namespace drive_backend {
@@ -53,6 +54,13 @@ class SyncTaskToken {
int64 token_id() const { return token_id_; }
+ void InitializeTaskLog(const std::string& task_description);
+ void FinalizeTaskLog(const std::string& result_description);
+ void RecordLog(const std::string& message);
+
+ void SetTaskLog(scoped_ptr<TaskLogger::TaskLog> task_log);
+ scoped_ptr<TaskLogger::TaskLog> PassTaskLog();
+
private:
SyncTaskToken(const base::WeakPtr<SyncTaskManager>& manager,
int64 token_id,
@@ -64,6 +72,7 @@ class SyncTaskToken {
int64 token_id_;
SyncStatusCallback callback_;
+ scoped_ptr<TaskLogger::TaskLog> task_log_;
scoped_ptr<BlockingFactor> blocking_factor_;
DISALLOW_COPY_AND_ASSIGN(SyncTaskToken);

Powered by Google App Engine
This is Rietveld 408576698