| 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/sandbox_mount_point_provider.h" | 5 #include "webkit/browser/fileapi/sandbox_mount_point_provider.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
| 12 #include "base/metrics/histogram.h" | 12 #include "base/metrics/histogram.h" |
| 13 #include "base/stl_util.h" | 13 #include "base/stl_util.h" |
| 14 #include "base/task_runner_util.h" | 14 #include "base/task_runner_util.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 #include "net/base/net_util.h" | 16 #include "net/base/net_util.h" |
| 17 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" | 17 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" |
| 18 #include "webkit/browser/fileapi/file_system_task_runners.h" |
| 18 #include "webkit/browser/fileapi/file_system_usage_cache.h" | 19 #include "webkit/browser/fileapi/file_system_usage_cache.h" |
| 20 #include "webkit/browser/fileapi/local_file_system_operation.h" |
| 19 #include "webkit/browser/fileapi/obfuscated_file_util.h" | 21 #include "webkit/browser/fileapi/obfuscated_file_util.h" |
| 20 #include "webkit/browser/fileapi/sandbox_file_stream_writer.h" | 22 #include "webkit/browser/fileapi/sandbox_file_stream_writer.h" |
| 21 #include "webkit/browser/fileapi/sandbox_quota_observer.h" | 23 #include "webkit/browser/fileapi/sandbox_quota_observer.h" |
| 22 #include "webkit/fileapi/async_file_util_adapter.h" | 24 #include "webkit/fileapi/async_file_util_adapter.h" |
| 23 #include "webkit/fileapi/file_system_context.h" | 25 #include "webkit/fileapi/file_system_context.h" |
| 24 #include "webkit/fileapi/file_system_file_stream_reader.h" | 26 #include "webkit/fileapi/file_system_file_stream_reader.h" |
| 25 #include "webkit/fileapi/file_system_operation_context.h" | 27 #include "webkit/fileapi/file_system_operation_context.h" |
| 26 #include "webkit/fileapi/file_system_options.h" | 28 #include "webkit/fileapi/file_system_options.h" |
| 27 #include "webkit/fileapi/file_system_task_runners.h" | |
| 28 #include "webkit/fileapi/file_system_types.h" | 29 #include "webkit/fileapi/file_system_types.h" |
| 29 #include "webkit/fileapi/file_system_util.h" | 30 #include "webkit/fileapi/file_system_util.h" |
| 30 #include "webkit/fileapi/local_file_system_operation.h" | |
| 31 #include "webkit/fileapi/syncable/syncable_file_system_operation.h" | 31 #include "webkit/fileapi/syncable/syncable_file_system_operation.h" |
| 32 #include "webkit/quota/quota_manager.h" | 32 #include "webkit/quota/quota_manager.h" |
| 33 | 33 |
| 34 using quota::QuotaManagerProxy; | 34 using quota::QuotaManagerProxy; |
| 35 | 35 |
| 36 namespace fileapi { | 36 namespace fileapi { |
| 37 | 37 |
| 38 namespace { | 38 namespace { |
| 39 | 39 |
| 40 const char kChromeScheme[] = "chrome"; | 40 const char kChromeScheme[] = "chrome"; |
| (...skipping 650 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 691 | 691 |
| 692 while (!(file_path_each = enumerator->Next()).empty()) { | 692 while (!(file_path_each = enumerator->Next()).empty()) { |
| 693 usage += enumerator->Size(); | 693 usage += enumerator->Size(); |
| 694 usage += ObfuscatedFileUtil::ComputeFilePathCost(file_path_each); | 694 usage += ObfuscatedFileUtil::ComputeFilePathCost(file_path_each); |
| 695 } | 695 } |
| 696 | 696 |
| 697 return usage; | 697 return usage; |
| 698 } | 698 } |
| 699 | 699 |
| 700 } // namespace fileapi | 700 } // namespace fileapi |
| OLD | NEW |