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

Side by Side Diff: storage/browser/fileapi/file_system_context.cc

Issue 1546243002: Convert Pass()→std::move() in //storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 12 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 "storage/browser/fileapi/file_system_context.h" 5 #include "storage/browser/fileapi/file_system_context.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <stdint.h> 8 #include <stdint.h>
9 #include <utility>
9 10
10 #include "base/bind.h" 11 #include "base/bind.h"
11 #include "base/macros.h" 12 #include "base/macros.h"
12 #include "base/single_thread_task_runner.h" 13 #include "base/single_thread_task_runner.h"
13 #include "base/stl_util.h" 14 #include "base/stl_util.h"
14 #include "base/task_runner_util.h" 15 #include "base/task_runner_util.h"
15 #include "base/thread_task_runner_handle.h" 16 #include "base/thread_task_runner_handle.h"
16 #include "net/url_request/url_request.h" 17 #include "net/url_request/url_request.h"
17 #include "storage/browser/fileapi/copy_or_move_file_validator.h" 18 #include "storage/browser/fileapi/copy_or_move_file_validator.h"
18 #include "storage/browser/fileapi/external_mount_points.h" 19 #include "storage/browser/fileapi/external_mount_points.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 file_task_runner, 153 file_task_runner,
153 partition_path, 154 partition_path,
154 special_storage_policy, 155 special_storage_policy,
155 options)), 156 options)),
156 sandbox_backend_(new SandboxFileSystemBackend(sandbox_delegate_.get())), 157 sandbox_backend_(new SandboxFileSystemBackend(sandbox_delegate_.get())),
157 plugin_private_backend_( 158 plugin_private_backend_(
158 new PluginPrivateFileSystemBackend(file_task_runner, 159 new PluginPrivateFileSystemBackend(file_task_runner,
159 partition_path, 160 partition_path,
160 special_storage_policy, 161 special_storage_policy,
161 options)), 162 options)),
162 additional_backends_(additional_backends.Pass()), 163 additional_backends_(std::move(additional_backends)),
163 auto_mount_handlers_(auto_mount_handlers), 164 auto_mount_handlers_(auto_mount_handlers),
164 external_mount_points_(external_mount_points), 165 external_mount_points_(external_mount_points),
165 partition_path_(partition_path), 166 partition_path_(partition_path),
166 is_incognito_(options.is_incognito()), 167 is_incognito_(options.is_incognito()),
167 operation_runner_(new FileSystemOperationRunner(this)) { 168 operation_runner_(new FileSystemOperationRunner(this)) {
168 RegisterBackend(sandbox_backend_.get()); 169 RegisterBackend(sandbox_backend_.get());
169 RegisterBackend(plugin_private_backend_.get()); 170 RegisterBackend(plugin_private_backend_.get());
170 171
171 for (ScopedVector<FileSystemBackend>::const_iterator iter = 172 for (ScopedVector<FileSystemBackend>::const_iterator iter =
172 additional_backends_.begin(); 173 additional_backends_.begin();
(...skipping 459 matching lines...) Expand 10 before | Expand all | Expand 10 after
632 633
633 // TODO(mtomasz): Not all fields should be required for ResolveURL. 634 // TODO(mtomasz): Not all fields should be required for ResolveURL.
634 operation_runner()->GetMetadata( 635 operation_runner()->GetMetadata(
635 url, FileSystemOperation::GET_METADATA_FIELD_IS_DIRECTORY | 636 url, FileSystemOperation::GET_METADATA_FIELD_IS_DIRECTORY |
636 FileSystemOperation::GET_METADATA_FIELD_SIZE | 637 FileSystemOperation::GET_METADATA_FIELD_SIZE |
637 FileSystemOperation::GET_METADATA_FIELD_LAST_MODIFIED, 638 FileSystemOperation::GET_METADATA_FIELD_LAST_MODIFIED,
638 base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); 639 base::Bind(&DidGetMetadataForResolveURL, path, callback, info));
639 } 640 }
640 641
641 } // namespace storage 642 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/fileapi/copy_or_move_operation_delegate.cc ('k') | storage/browser/fileapi/file_system_operation_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698