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

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

Issue 515093002: FileAPI/sync file system cleanups for scoped_refptr operator T* cleanup. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
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_TOKEN_H_ 5 #ifndef CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_TOKEN_H_
6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_TOKEN_H_ 6 #define CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_TOKEN_H_
7 7
8 #include "base/callback.h" 8 #include "base/callback.h"
9 #include "base/location.h" 9 #include "base/location.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 void InitializeTaskLog(const std::string& task_description); 59 void InitializeTaskLog(const std::string& task_description);
60 void FinalizeTaskLog(const std::string& result_description); 60 void FinalizeTaskLog(const std::string& result_description);
61 void RecordLog(const std::string& message); 61 void RecordLog(const std::string& message);
62 62
63 bool has_task_log() const { return task_log_; } 63 bool has_task_log() const { return task_log_; }
64 void SetTaskLog(scoped_ptr<TaskLogger::TaskLog> task_log); 64 void SetTaskLog(scoped_ptr<TaskLogger::TaskLog> task_log);
65 scoped_ptr<TaskLogger::TaskLog> PassTaskLog(); 65 scoped_ptr<TaskLogger::TaskLog> PassTaskLog();
66 66
67 private: 67 private:
68 SyncTaskToken(const base::WeakPtr<SyncTaskManager>& manager, 68 SyncTaskToken(const base::WeakPtr<SyncTaskManager>& manager,
69 base::SequencedTaskRunner* task_runner, 69 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
70 int64 token_id, 70 int64 token_id,
71 scoped_ptr<BlockingFactor> blocking_factor, 71 scoped_ptr<BlockingFactor> blocking_factor,
72 const SyncStatusCallback& callback); 72 const SyncStatusCallback& callback);
73 73
74 base::WeakPtr<SyncTaskManager> manager_; 74 base::WeakPtr<SyncTaskManager> manager_;
75 scoped_refptr<base::SequencedTaskRunner> task_runner_; 75 scoped_refptr<base::SequencedTaskRunner> task_runner_;
76 tracked_objects::Location location_; 76 tracked_objects::Location location_;
77 int64 token_id_; 77 int64 token_id_;
78 SyncStatusCallback callback_; 78 SyncStatusCallback callback_;
79 79
80 scoped_ptr<TaskLogger::TaskLog> task_log_; 80 scoped_ptr<TaskLogger::TaskLog> task_log_;
81 scoped_ptr<BlockingFactor> blocking_factor_; 81 scoped_ptr<BlockingFactor> blocking_factor_;
82 82
83 DISALLOW_COPY_AND_ASSIGN(SyncTaskToken); 83 DISALLOW_COPY_AND_ASSIGN(SyncTaskToken);
84 }; 84 };
85 85
86 } // namespace drive_backend 86 } // namespace drive_backend
87 } // namespace sync_file_system 87 } // namespace sync_file_system
88 88
89 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_TOKEN_H_ 89 #endif // CHROME_BROWSER_SYNC_FILE_SYSTEM_DRIVE_BACKEND_SYNC_TASK_TOKEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698