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 "content/browser/gpu/browser_gpu_channel_host_factory.h" | 9 #include "content/browser/gpu/browser_gpu_channel_host_factory.h" |
10 #include "content/public/common/serialized_script_value.h" | 10 #include "content/public/common/serialized_script_value.h" |
11 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebData.h" | 11 #include "third_party/WebKit/Source/Platform/chromium/public/WebData.h" |
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" | 12 #include "third_party/WebKit/Source/Platform/chromium/public/WebString.h" |
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" | 13 #include "third_party/WebKit/Source/Platform/chromium/public/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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
119 const FilePath path = webkit_base::WebStringToFilePath(vfs_file_name); | 119 const FilePath path = webkit_base::WebStringToFilePath(vfs_file_name); |
120 return file_util::Delete(path, false) ? 0 : 1; | 120 return file_util::Delete(path, false) ? 0 : 1; |
121 } | 121 } |
122 | 122 |
123 GpuChannelHostFactory* | 123 GpuChannelHostFactory* |
124 BrowserWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { | 124 BrowserWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { |
125 return BrowserGpuChannelHostFactory::instance(); | 125 return BrowserGpuChannelHostFactory::instance(); |
126 } | 126 } |
127 | 127 |
128 } // namespace content | 128 } // namespace content |
OLD | NEW |