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/quota/quota_reservation.h" | 26 #include "webkit/browser/fileapi/quota/quota_reservation.h" |
27 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" | 27 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" |
28 #include "webkit/browser/quota/quota_manager.h" | 28 #include "webkit/browser/quota/quota_manager_proxy.h" |
29 #include "webkit/browser/quota/special_storage_policy.h" | 29 #include "webkit/browser/quota/special_storage_policy.h" |
30 #include "webkit/common/fileapi/file_system_info.h" | 30 #include "webkit/common/fileapi/file_system_info.h" |
31 #include "webkit/common/fileapi/file_system_util.h" | 31 #include "webkit/common/fileapi/file_system_util.h" |
32 | 32 |
33 using quota::QuotaClient; | 33 using quota::QuotaClient; |
34 | 34 |
35 namespace fileapi { | 35 namespace fileapi { |
36 | 36 |
37 namespace { | 37 namespace { |
38 | 38 |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
563 } else if (parent != child) { | 563 } else if (parent != child) { |
564 bool result = parent.AppendRelativePath(child, &path); | 564 bool result = parent.AppendRelativePath(child, &path); |
565 DCHECK(result); | 565 DCHECK(result); |
566 } | 566 } |
567 | 567 |
568 operation_runner()->GetMetadata( | 568 operation_runner()->GetMetadata( |
569 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); | 569 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); |
570 } | 570 } |
571 | 571 |
572 } // namespace fileapi | 572 } // namespace fileapi |
OLD | NEW |