summaryrefslogtreecommitdiffstats
path: root/chrome/renderer
diff options
context:
space:
mode:
authordarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-02 16:08:41 +0000
committerdarin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-02 16:08:41 +0000
commita54ccdfe6562d1dcff0436687415535540c3fdd4 (patch)
treeb5a219bb87699be497da279530512e207bd16827 /chrome/renderer
parentd758200af451f5060d7dff9846a9d7e3d3e432ec (diff)
downloadchromium_src-a54ccdfe6562d1dcff0436687415535540c3fdd4.zip
chromium_src-a54ccdfe6562d1dcff0436687415535540c3fdd4.tar.gz
chromium_src-a54ccdfe6562d1dcff0436687415535540c3fdd4.tar.bz2
Minor cleanup in WebKitClient.
1. Avoid including windows.h 2. Rename FileType to FileHandle 3. Fix consumers to use FileHandle R=dglazkov BUG=none TEST=none Review URL: http://codereview.chromium.org/246072 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27845 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r--chrome/renderer/renderer_webkitclient_impl.cc5
-rw-r--r--chrome/renderer/renderer_webkitclient_impl.h4
2 files changed, 5 insertions, 4 deletions
diff --git a/chrome/renderer/renderer_webkitclient_impl.cc b/chrome/renderer/renderer_webkitclient_impl.cc
index 2a2ae60..545da3a 100644
--- a/chrome/renderer/renderer_webkitclient_impl.cc
+++ b/chrome/renderer/renderer_webkitclient_impl.cc
@@ -39,6 +39,7 @@
using WebKit::WebApplicationCacheHost;
using WebKit::WebApplicationCacheHostClient;
+using WebKit::WebKitClient;
using WebKit::WebStorageArea;
using WebKit::WebStorageNamespace;
using WebKit::WebString;
@@ -248,9 +249,9 @@ WebString RendererWebKitClientImpl::SandboxSupport::getFontFamilyForCharacters(
//------------------------------------------------------------------------------
-base::PlatformFile RendererWebKitClientImpl::databaseOpenFile(
+WebKitClient::FileHandle RendererWebKitClientImpl::databaseOpenFile(
const WebString& file_name, int desired_flags,
- base::PlatformFile* dir_handle) {
+ WebKitClient::FileHandle* dir_handle) {
DBMessageFilter* db_message_filter = DBMessageFilter::GetInstance();
int message_id = db_message_filter->GetUniqueID();
diff --git a/chrome/renderer/renderer_webkitclient_impl.h b/chrome/renderer/renderer_webkitclient_impl.h
index f85ba2f..759d90e 100644
--- a/chrome/renderer/renderer_webkitclient_impl.h
+++ b/chrome/renderer/renderer_webkitclient_impl.h
@@ -45,9 +45,9 @@ class RendererWebKitClientImpl : public webkit_glue::WebKitClientImpl {
const WebKit::WebString& path);
virtual WebKit::WebStorageNamespace* createSessionStorageNamespace();
- virtual base::PlatformFile databaseOpenFile(
+ virtual WebKit::WebKitClient::FileHandle databaseOpenFile(
const WebKit::WebString& file_name, int desired_flags,
- base::PlatformFile* dir_handle);
+ WebKit::WebKitClient::FileHandle* dir_handle);
virtual int databaseDeleteFile(const WebKit::WebString& file_name,
bool sync_dir);
virtual long databaseGetFileAttributes(const WebKit::WebString& file_name);