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

Side by Side Diff: components/drive/sync_client.cc

Issue 1728033002: components: 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, 9 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "components/drive/sync_client.h" 5 #include "components/drive/sync_client.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 FileError error = metadata->GetResourceEntryById(local_id, &entry); 128 FileError error = metadata->GetResourceEntryById(local_id, &entry);
129 if (error != FILE_ERROR_OK) 129 if (error != FILE_ERROR_OK)
130 return error; 130 return error;
131 return metadata->GetResourceEntryById(entry.parent_local_id(), parent); 131 return metadata->GetResourceEntryById(entry.parent_local_id(), parent);
132 } 132 }
133 133
134 } // namespace 134 } // namespace
135 135
136 SyncClient::SyncTask::SyncTask() 136 SyncClient::SyncTask::SyncTask()
137 : state(SUSPENDED), context(BACKGROUND), should_run_again(false) {} 137 : state(SUSPENDED), context(BACKGROUND), should_run_again(false) {}
138 SyncClient::SyncTask::SyncTask(const SyncTask& other) = default;
138 SyncClient::SyncTask::~SyncTask() {} 139 SyncClient::SyncTask::~SyncTask() {}
139 140
140 SyncClient::SyncClient(base::SequencedTaskRunner* blocking_task_runner, 141 SyncClient::SyncClient(base::SequencedTaskRunner* blocking_task_runner,
141 file_system::OperationDelegate* delegate, 142 file_system::OperationDelegate* delegate,
142 JobScheduler* scheduler, 143 JobScheduler* scheduler,
143 ResourceMetadata* metadata, 144 ResourceMetadata* metadata,
144 FileCache* cache, 145 FileCache* cache,
145 LoaderController* loader_controller, 146 LoaderController* loader_controller,
146 const base::FilePath& temporary_file_directory) 147 const base::FilePath& temporary_file_directory)
147 : blocking_task_runner_(blocking_task_runner), 148 : blocking_task_runner_(blocking_task_runner),
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 base::PostTaskAndReplyWithResult( 489 base::PostTaskAndReplyWithResult(
489 blocking_task_runner_.get(), 490 blocking_task_runner_.get(),
490 FROM_HERE, 491 FROM_HERE,
491 base::Bind(&FileCache::Unpin, base::Unretained(cache_), local_id), 492 base::Bind(&FileCache::Unpin, base::Unretained(cache_), local_id),
492 base::Bind(&util::EmptyFileOperationCallback)); 493 base::Bind(&util::EmptyFileOperationCallback));
493 } 494 }
494 } 495 }
495 496
496 } // namespace internal 497 } // namespace internal
497 } // namespace drive 498 } // namespace drive
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698