OLD | NEW |
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 "webkit/browser/fileapi/file_system_context.h" | 5 #include "webkit/browser/fileapi/file_system_context.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/single_thread_task_runner.h" | 8 #include "base/single_thread_task_runner.h" |
9 #include "base/stl_util.h" | 9 #include "base/stl_util.h" |
10 #include "base/task_runner_util.h" | 10 #include "base/task_runner_util.h" |
11 #include "url/gurl.h" | 11 #include "url/gurl.h" |
12 #include "webkit/browser/blob/file_stream_reader.h" | 12 #include "webkit/browser/blob/file_stream_reader.h" |
13 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" | 13 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" |
14 #include "webkit/browser/fileapi/external_mount_points.h" | 14 #include "webkit/browser/fileapi/external_mount_points.h" |
15 #include "webkit/browser/fileapi/file_permission_policy.h" | 15 #include "webkit/browser/fileapi/file_permission_policy.h" |
16 #include "webkit/browser/fileapi/file_stream_writer.h" | 16 #include "webkit/browser/fileapi/file_stream_writer.h" |
17 #include "webkit/browser/fileapi/file_system_file_util.h" | 17 #include "webkit/browser/fileapi/file_system_file_util.h" |
18 #include "webkit/browser/fileapi/file_system_operation.h" | 18 #include "webkit/browser/fileapi/file_system_operation.h" |
19 #include "webkit/browser/fileapi/file_system_operation_runner.h" | 19 #include "webkit/browser/fileapi/file_system_operation_runner.h" |
20 #include "webkit/browser/fileapi/file_system_options.h" | 20 #include "webkit/browser/fileapi/file_system_options.h" |
21 #include "webkit/browser/fileapi/file_system_quota_client.h" | 21 #include "webkit/browser/fileapi/file_system_quota_client.h" |
22 #include "webkit/browser/fileapi/file_system_url.h" | 22 #include "webkit/browser/fileapi/file_system_url.h" |
23 #include "webkit/browser/fileapi/isolated_context.h" | 23 #include "webkit/browser/fileapi/isolated_context.h" |
24 #include "webkit/browser/fileapi/isolated_file_system_backend.h" | 24 #include "webkit/browser/fileapi/isolated_file_system_backend.h" |
25 #include "webkit/browser/fileapi/mount_points.h" | 25 #include "webkit/browser/fileapi/mount_points.h" |
26 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" | 26 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |
27 #include "webkit/browser/fileapi/test_file_system_backend.h" | |
28 #include "webkit/browser/quota/quota_manager.h" | 27 #include "webkit/browser/quota/quota_manager.h" |
29 #include "webkit/browser/quota/special_storage_policy.h" | 28 #include "webkit/browser/quota/special_storage_policy.h" |
30 #include "webkit/common/fileapi/file_system_info.h" | 29 #include "webkit/common/fileapi/file_system_info.h" |
31 #include "webkit/common/fileapi/file_system_util.h" | 30 #include "webkit/common/fileapi/file_system_util.h" |
32 | 31 |
33 using quota::QuotaClient; | 32 using quota::QuotaClient; |
34 | 33 |
35 namespace fileapi { | 34 namespace fileapi { |
36 | 35 |
37 namespace { | 36 namespace { |
(...skipping 472 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
510 } else if (parent != child) { | 509 } else if (parent != child) { |
511 bool result = parent.AppendRelativePath(child, &path); | 510 bool result = parent.AppendRelativePath(child, &path); |
512 DCHECK(result); | 511 DCHECK(result); |
513 } | 512 } |
514 | 513 |
515 operation_runner()->GetMetadata( | 514 operation_runner()->GetMetadata( |
516 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); | 515 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); |
517 } | 516 } |
518 | 517 |
519 } // namespace fileapi | 518 } // namespace fileapi |
OLD | NEW |