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 "storage/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 "net/url_request/url_request.h" | 11 #include "net/url_request/url_request.h" |
| 12 #include "storage/browser/blob/file_stream_reader.h" |
| 13 #include "storage/browser/fileapi/copy_or_move_file_validator.h" |
| 14 #include "storage/browser/fileapi/external_mount_points.h" |
| 15 #include "storage/browser/fileapi/file_permission_policy.h" |
| 16 #include "storage/browser/fileapi/file_stream_writer.h" |
| 17 #include "storage/browser/fileapi/file_system_file_util.h" |
| 18 #include "storage/browser/fileapi/file_system_operation.h" |
| 19 #include "storage/browser/fileapi/file_system_operation_runner.h" |
| 20 #include "storage/browser/fileapi/file_system_options.h" |
| 21 #include "storage/browser/fileapi/file_system_quota_client.h" |
| 22 #include "storage/browser/fileapi/file_system_url.h" |
| 23 #include "storage/browser/fileapi/isolated_context.h" |
| 24 #include "storage/browser/fileapi/isolated_file_system_backend.h" |
| 25 #include "storage/browser/fileapi/mount_points.h" |
| 26 #include "storage/browser/fileapi/quota/quota_reservation.h" |
| 27 #include "storage/browser/fileapi/sandbox_file_system_backend.h" |
| 28 #include "storage/browser/quota/quota_manager_proxy.h" |
| 29 #include "storage/browser/quota/special_storage_policy.h" |
| 30 #include "storage/common/fileapi/file_system_info.h" |
| 31 #include "storage/common/fileapi/file_system_util.h" |
12 #include "url/gurl.h" | 32 #include "url/gurl.h" |
13 #include "webkit/browser/blob/file_stream_reader.h" | |
14 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" | |
15 #include "webkit/browser/fileapi/external_mount_points.h" | |
16 #include "webkit/browser/fileapi/file_permission_policy.h" | |
17 #include "webkit/browser/fileapi/file_stream_writer.h" | |
18 #include "webkit/browser/fileapi/file_system_file_util.h" | |
19 #include "webkit/browser/fileapi/file_system_operation.h" | |
20 #include "webkit/browser/fileapi/file_system_operation_runner.h" | |
21 #include "webkit/browser/fileapi/file_system_options.h" | |
22 #include "webkit/browser/fileapi/file_system_quota_client.h" | |
23 #include "webkit/browser/fileapi/file_system_url.h" | |
24 #include "webkit/browser/fileapi/isolated_context.h" | |
25 #include "webkit/browser/fileapi/isolated_file_system_backend.h" | |
26 #include "webkit/browser/fileapi/mount_points.h" | |
27 #include "webkit/browser/fileapi/quota/quota_reservation.h" | |
28 #include "webkit/browser/fileapi/sandbox_file_system_backend.h" | |
29 #include "webkit/browser/quota/quota_manager_proxy.h" | |
30 #include "webkit/browser/quota/special_storage_policy.h" | |
31 #include "webkit/common/fileapi/file_system_info.h" | |
32 #include "webkit/common/fileapi/file_system_util.h" | |
33 | 33 |
34 using storage::QuotaClient; | 34 using storage::QuotaClient; |
35 | 35 |
36 namespace storage { | 36 namespace storage { |
37 | 37 |
38 namespace { | 38 namespace { |
39 | 39 |
40 QuotaClient* CreateQuotaClient( | 40 QuotaClient* CreateQuotaClient( |
41 FileSystemContext* context, | 41 FileSystemContext* context, |
42 bool is_incognito) { | 42 bool is_incognito) { |
(...skipping 592 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
635 } else if (parent != child) { | 635 } else if (parent != child) { |
636 bool result = parent.AppendRelativePath(child, &path); | 636 bool result = parent.AppendRelativePath(child, &path); |
637 DCHECK(result); | 637 DCHECK(result); |
638 } | 638 } |
639 | 639 |
640 operation_runner()->GetMetadata( | 640 operation_runner()->GetMetadata( |
641 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); | 641 url, base::Bind(&DidGetMetadataForResolveURL, path, callback, info)); |
642 } | 642 } |
643 | 643 |
644 } // namespace storage | 644 } // namespace storage |
OLD | NEW |