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

Unified Diff: chrome/renderer/renderer_webkitclient_impl.cc

Issue 5698008: Switch a bunch of remaining filters to derive from BrowserMessageFilters so t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/worker/worker_webkitclient_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/renderer_webkitclient_impl.cc
===================================================================
--- chrome/renderer/renderer_webkitclient_impl.cc (revision 68877)
+++ chrome/renderer/renderer_webkitclient_impl.cc (working copy)
@@ -12,6 +12,8 @@
#include "chrome/common/chrome_switches.h"
#include "chrome/common/database_util.h"
#include "chrome/common/file_system/webfilesystem_impl.h"
+#include "chrome/common/file_utilities_messages.h"
+#include "chrome/common/mime_registry_messages.h"
#include "chrome/common/render_messages.h"
#include "chrome/common/webblobregistry_impl.h"
#include "chrome/common/webmessageportchannel_impl.h"
@@ -324,8 +326,9 @@
// The sandbox restricts our access to the registry, so we need to proxy
// these calls over to the browser process.
std::string mime_type;
- RenderThread::current()->Send(new ViewHostMsg_GetMimeTypeFromExtension(
- webkit_glue::WebStringToFilePathString(file_extension), &mime_type));
+ RenderThread::current()->Send(
+ new MimeRegistryMsg_GetMimeTypeFromExtension(
+ webkit_glue::WebStringToFilePathString(file_extension), &mime_type));
return ASCIIToUTF16(mime_type);
}
@@ -338,7 +341,7 @@
// The sandbox restricts our access to the registry, so we need to proxy
// these calls over to the browser process.
std::string mime_type;
- RenderThread::current()->Send(new ViewHostMsg_GetMimeTypeFromFile(
+ RenderThread::current()->Send(new MimeRegistryMsg_GetMimeTypeFromFile(
FilePath(webkit_glue::WebStringToFilePathString(file_path)),
&mime_type));
return ASCIIToUTF16(mime_type);
@@ -354,8 +357,8 @@
// these calls over to the browser process.
FilePath::StringType file_extension;
RenderThread::current()->Send(
- new ViewHostMsg_GetPreferredExtensionForMimeType(UTF16ToASCII(mime_type),
- &file_extension));
+ new MimeRegistryMsg_GetPreferredExtensionForMimeType(
+ UTF16ToASCII(mime_type), &file_extension));
return webkit_glue::FilePathStringToWebString(file_extension);
}
@@ -363,7 +366,7 @@
bool RendererWebKitClientImpl::FileUtilities::getFileSize(const WebString& path,
long long& result) {
- if (SendSyncMessageFromAnyThread(new ViewHostMsg_GetFileSize(
+ if (SendSyncMessageFromAnyThread(new FileUtilitiesMsg_GetFileSize(
webkit_glue::WebStringToFilePath(path),
reinterpret_cast<int64*>(&result)))) {
return result >= 0;
@@ -384,7 +387,7 @@
const WebString& path,
double& result) {
base::Time time;
- if (SendSyncMessageFromAnyThread(new ViewHostMsg_GetFileModificationTime(
+ if (SendSyncMessageFromAnyThread(new FileUtilitiesMsg_GetFileModificationTime(
webkit_glue::WebStringToFilePath(path), &time))) {
result = time.ToDoubleT();
return !time.is_null();
@@ -398,7 +401,7 @@
const WebString& path,
int mode) {
IPC::PlatformFileForTransit handle = IPC::InvalidPlatformFileForTransit();
- SendSyncMessageFromAnyThread(new ViewHostMsg_OpenFile(
+ SendSyncMessageFromAnyThread(new FileUtilitiesMsg_OpenFile(
webkit_glue::WebStringToFilePath(path), mode, &handle));
return IPC::PlatformFileForTransitToPlatformFile(handle);
}
« no previous file with comments | « chrome/common/render_messages_internal.h ('k') | chrome/worker/worker_webkitclient_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698