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" |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 } | 88 } |
89 | 89 |
90 void BrowserWebKitPlatformSupportImpl::getPluginList(bool refresh, | 90 void BrowserWebKitPlatformSupportImpl::getPluginList(bool refresh, |
91 WebKit::WebPluginListBuilder* builder) { | 91 WebKit::WebPluginListBuilder* builder) { |
92 NOTREACHED(); | 92 NOTREACHED(); |
93 } | 93 } |
94 | 94 |
95 int BrowserWebKitPlatformSupportImpl::databaseDeleteFile( | 95 int BrowserWebKitPlatformSupportImpl::databaseDeleteFile( |
96 const WebKit::WebString& vfs_file_name, bool sync_dir) { | 96 const WebKit::WebString& vfs_file_name, bool sync_dir) { |
97 const base::FilePath& path = base::FilePath::FromUTF16Unsafe(vfs_file_name); | 97 const base::FilePath& path = base::FilePath::FromUTF16Unsafe(vfs_file_name); |
98 return base::Delete(path, false) ? 0 : 1; | 98 return base::DeleteFile(path, false) ? 0 : 1; |
99 } | 99 } |
100 | 100 |
101 long long BrowserWebKitPlatformSupportImpl::availableDiskSpaceInBytes( | 101 long long BrowserWebKitPlatformSupportImpl::availableDiskSpaceInBytes( |
102 const WebKit::WebString& fileName) { | 102 const WebKit::WebString& fileName) { |
103 return base::SysInfo::AmountOfFreeDiskSpace( | 103 return base::SysInfo::AmountOfFreeDiskSpace( |
104 base::FilePath::FromUTF16Unsafe(fileName)); | 104 base::FilePath::FromUTF16Unsafe(fileName)); |
105 } | 105 } |
106 | 106 |
107 } // namespace content | 107 } // namespace content |
OLD | NEW |