| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "chrome/browser/chromeos/extensions/file_manager/private_api_file_syste
m.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_file_syste
m.h" |
| 6 | 6 |
| 7 #include <sys/statvfs.h> | 7 #include <sys/statvfs.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <set> | 10 #include <set> |
| 11 #include <utility> | 11 #include <utility> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/files/file_util.h" | 14 #include "base/files/file_util.h" |
| 15 #include "base/memory/ptr_util.h" | 15 #include "base/memory/ptr_util.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "base/posix/eintr_wrapper.h" | 17 #include "base/posix/eintr_wrapper.h" |
| 18 #include "base/strings/string_number_conversions.h" | 18 #include "base/strings/string_number_conversions.h" |
| 19 #include "base/strings/string_util.h" | 19 #include "base/strings/string_util.h" |
| 20 #include "base/strings/stringprintf.h" | |
| 21 #include "base/sys_info.h" | 20 #include "base/sys_info.h" |
| 22 #include "base/task_runner_util.h" | 21 #include "base/task_runner_util.h" |
| 23 #include "base/threading/sequenced_worker_pool.h" | 22 #include "base/threading/sequenced_worker_pool.h" |
| 24 #include "chrome/browser/browser_process.h" | 23 #include "chrome/browser/browser_process.h" |
| 25 #include "chrome/browser/chromeos/drive/file_system_util.h" | 24 #include "chrome/browser/chromeos/drive/file_system_util.h" |
| 26 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" | 25 #include "chrome/browser/chromeos/extensions/file_manager/event_router.h" |
| 27 #include "chrome/browser/chromeos/extensions/file_manager/event_router_factory.h
" | 26 #include "chrome/browser/chromeos/extensions/file_manager/event_router_factory.h
" |
| 28 #include "chrome/browser/chromeos/extensions/file_manager/file_stream_md5_digest
er.h" | 27 #include "chrome/browser/chromeos/extensions/file_manager/file_stream_md5_digest
er.h" |
| 29 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" | 28 #include "chrome/browser/chromeos/extensions/file_manager/private_api_util.h" |
| 30 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" | 29 #include "chrome/browser/chromeos/file_manager/fileapi_util.h" |
| (...skipping 967 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 998 } | 997 } |
| 999 | 998 |
| 1000 void FileManagerPrivateInternalGetDirectorySizeFunction:: | 999 void FileManagerPrivateInternalGetDirectorySizeFunction:: |
| 1001 OnDirectorySizeRetrieved(int64_t size) { | 1000 OnDirectorySizeRetrieved(int64_t size) { |
| 1002 SetResult( | 1001 SetResult( |
| 1003 base::MakeUnique<base::FundamentalValue>(static_cast<double>(size))); | 1002 base::MakeUnique<base::FundamentalValue>(static_cast<double>(size))); |
| 1004 SendResponse(true); | 1003 SendResponse(true); |
| 1005 } | 1004 } |
| 1006 | 1005 |
| 1007 } // namespace extensions | 1006 } // namespace extensions |
| OLD | NEW |