| 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" | |
| 16 #include "net/base/net_util.h" | 15 #include "net/base/net_util.h" |
| 16 #include "url/gurl.h" |
| 17 #include "webkit/browser/fileapi/async_file_util_adapter.h" | 17 #include "webkit/browser/fileapi/async_file_util_adapter.h" |
| 18 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" | 18 #include "webkit/browser/fileapi/copy_or_move_file_validator.h" |
| 19 #include "webkit/browser/fileapi/file_system_context.h" | 19 #include "webkit/browser/fileapi/file_system_context.h" |
| 20 #include "webkit/browser/fileapi/file_system_file_stream_reader.h" | 20 #include "webkit/browser/fileapi/file_system_file_stream_reader.h" |
| 21 #include "webkit/browser/fileapi/file_system_operation_context.h" | 21 #include "webkit/browser/fileapi/file_system_operation_context.h" |
| 22 #include "webkit/browser/fileapi/file_system_options.h" | 22 #include "webkit/browser/fileapi/file_system_options.h" |
| 23 #include "webkit/browser/fileapi/file_system_task_runners.h" | 23 #include "webkit/browser/fileapi/file_system_task_runners.h" |
| 24 #include "webkit/browser/fileapi/file_system_usage_cache.h" | 24 #include "webkit/browser/fileapi/file_system_usage_cache.h" |
| 25 #include "webkit/browser/fileapi/local_file_system_operation.h" | 25 #include "webkit/browser/fileapi/local_file_system_operation.h" |
| 26 #include "webkit/browser/fileapi/obfuscated_file_util.h" | 26 #include "webkit/browser/fileapi/obfuscated_file_util.h" |
| (...skipping 646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 673 | 673 |
| 674 while (!(file_path_each = enumerator->Next()).empty()) { | 674 while (!(file_path_each = enumerator->Next()).empty()) { |
| 675 usage += enumerator->Size(); | 675 usage += enumerator->Size(); |
| 676 usage += ObfuscatedFileUtil::ComputeFilePathCost(file_path_each); | 676 usage += ObfuscatedFileUtil::ComputeFilePathCost(file_path_each); |
| 677 } | 677 } |
| 678 | 678 |
| 679 return usage; | 679 return usage; |
| 680 } | 680 } |
| 681 | 681 |
| 682 } // namespace fileapi | 682 } // namespace fileapi |
| OLD | NEW |