| 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 "content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h
" | 5 #include "content/browser/in_process_webkit/browser_webkitplatformsupport_impl.h
" |
| 6 | 6 |
| 7 #include "base/file_util.h" | 7 #include "base/file_util.h" |
| 8 #include "base/logging.h" | 8 #include "base/logging.h" |
| 9 #include "base/sys_info.h" | 9 #include "base/sys_info.h" |
| 10 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" | 10 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
| 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" | 11 #include "third_party/WebKit/public/platform/WebData.h" |
| 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" | 12 #include "third_party/WebKit/public/platform/WebString.h" |
| 13 #include "third_party/WebKit/Source/Platform/chromium/public/WebURL.h" | 13 #include "third_party/WebKit/public/platform/WebURL.h" |
| 14 #include "webkit/base/file_path_string_conversions.h" | 14 #include "webkit/base/file_path_string_conversions.h" |
| 15 | 15 |
| 16 namespace content { | 16 namespace content { |
| 17 | 17 |
| 18 BrowserWebKitPlatformSupportImpl::BrowserWebKitPlatformSupportImpl() { | 18 BrowserWebKitPlatformSupportImpl::BrowserWebKitPlatformSupportImpl() { |
| 19 file_utilities_.set_sandbox_enabled(false); | 19 file_utilities_.set_sandbox_enabled(false); |
| 20 } | 20 } |
| 21 | 21 |
| 22 BrowserWebKitPlatformSupportImpl::~BrowserWebKitPlatformSupportImpl() { | 22 BrowserWebKitPlatformSupportImpl::~BrowserWebKitPlatformSupportImpl() { |
| 23 } | 23 } |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 return file_util::Delete(path, false) ? 0 : 1; | 121 return file_util::Delete(path, false) ? 0 : 1; |
| 122 } | 122 } |
| 123 | 123 |
| 124 long long BrowserWebKitPlatformSupportImpl::availableDiskSpaceInBytes( | 124 long long BrowserWebKitPlatformSupportImpl::availableDiskSpaceInBytes( |
| 125 const WebKit::WebString& fileName) { | 125 const WebKit::WebString& fileName) { |
| 126 return base::SysInfo::AmountOfFreeDiskSpace( | 126 return base::SysInfo::AmountOfFreeDiskSpace( |
| 127 webkit_base::WebStringToFilePath(fileName)); | 127 webkit_base::WebStringToFilePath(fileName)); |
| 128 } | 128 } |
| 129 | 129 |
| 130 } // namespace content | 130 } // namespace content |
| OLD | NEW |