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

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

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 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h" 5 #include "chrome/browser/sync_file_system/drive_backend/sync_task_token.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/debug/trace_event.h" 8 #include "base/debug/trace_event.h"
9 #include "base/thread_task_runner_handle.h" 9 #include "base/thread_task_runner_handle.h"
10 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h" 10 #include "chrome/browser/sync_file_system/drive_backend/sync_task_manager.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 } 131 }
132 132
133 void SyncTaskToken::SetTaskLog(scoped_ptr<TaskLogger::TaskLog> task_log) { 133 void SyncTaskToken::SetTaskLog(scoped_ptr<TaskLogger::TaskLog> task_log) {
134 task_log_ = task_log.Pass(); 134 task_log_ = task_log.Pass();
135 } 135 }
136 136
137 scoped_ptr<TaskLogger::TaskLog> SyncTaskToken::PassTaskLog() { 137 scoped_ptr<TaskLogger::TaskLog> SyncTaskToken::PassTaskLog() {
138 return task_log_.Pass(); 138 return task_log_.Pass();
139 } 139 }
140 140
141 SyncTaskToken::SyncTaskToken(const base::WeakPtr<SyncTaskManager>& manager, 141 SyncTaskToken::SyncTaskToken(
142 base::SequencedTaskRunner* task_runner, 142 const base::WeakPtr<SyncTaskManager>& manager,
143 int64 token_id, 143 const scoped_refptr<base::SequencedTaskRunner>& task_runner,
144 scoped_ptr<BlockingFactor> blocking_factor, 144 int64 token_id,
145 const SyncStatusCallback& callback) 145 scoped_ptr<BlockingFactor> blocking_factor,
146 const SyncStatusCallback& callback)
146 : manager_(manager), 147 : manager_(manager),
147 task_runner_(task_runner), 148 task_runner_(task_runner),
148 token_id_(token_id), 149 token_id_(token_id),
149 callback_(callback), 150 callback_(callback),
150 blocking_factor_(blocking_factor.Pass()) { 151 blocking_factor_(blocking_factor.Pass()) {
151 } 152 }
152 153
153 } // namespace drive_backend 154 } // namespace drive_backend
154 } // namespace sync_file_system 155 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698