Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: content/browser/in_process_webkit/browser_webkitplatformsupport_impl.cc

Issue 11227033: Move a bunch of code in content\common (as well as a few left in renderer) to the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix cros Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/WebKit/chromium/public/platform/WebData.h"
12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h" 12 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h" 13 #include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
14 #include "webkit/glue/webkit_glue.h" 14 #include "webkit/glue/webkit_glue.h"
15 15
16 using content::GpuChannelHostFactory;
17
16 BrowserWebKitPlatformSupportImpl::BrowserWebKitPlatformSupportImpl() { 18 BrowserWebKitPlatformSupportImpl::BrowserWebKitPlatformSupportImpl() {
17 file_utilities_.set_sandbox_enabled(false); 19 file_utilities_.set_sandbox_enabled(false);
18 } 20 }
19 21
20 BrowserWebKitPlatformSupportImpl::~BrowserWebKitPlatformSupportImpl() { 22 BrowserWebKitPlatformSupportImpl::~BrowserWebKitPlatformSupportImpl() {
21 } 23 }
22 24
23 WebKit::WebClipboard* BrowserWebKitPlatformSupportImpl::clipboard() { 25 WebKit::WebClipboard* BrowserWebKitPlatformSupportImpl::clipboard() {
24 NOTREACHED(); 26 NOTREACHED();
25 return NULL; 27 return NULL;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 int BrowserWebKitPlatformSupportImpl::databaseDeleteFile( 123 int BrowserWebKitPlatformSupportImpl::databaseDeleteFile(
122 const WebKit::WebString& vfs_file_name, bool sync_dir) { 124 const WebKit::WebString& vfs_file_name, bool sync_dir) {
123 const FilePath path = webkit_glue::WebStringToFilePath(vfs_file_name); 125 const FilePath path = webkit_glue::WebStringToFilePath(vfs_file_name);
124 return file_util::Delete(path, false) ? 0 : 1; 126 return file_util::Delete(path, false) ? 0 : 1;
125 } 127 }
126 128
127 GpuChannelHostFactory* 129 GpuChannelHostFactory*
128 BrowserWebKitPlatformSupportImpl::GetGpuChannelHostFactory() { 130 BrowserWebKitPlatformSupportImpl::GetGpuChannelHostFactory() {
129 return content::BrowserGpuChannelHostFactory::instance(); 131 return content::BrowserGpuChannelHostFactory::instance();
130 } 132 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698