summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 14:49:36 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-08-18 14:49:36 +0000
commit25ecf164a41da4eb1378196a6a3f8e325dd7c819 (patch)
treeb0c2f0c6790482a4676c7dad0860a22388eaeefe /chrome
parent0615b6f5682896d3109349f1857839731e87e672 (diff)
downloadchromium_src-25ecf164a41da4eb1378196a6a3f8e325dd7c819.zip
chromium_src-25ecf164a41da4eb1378196a6a3f8e325dd7c819.tar.gz
chromium_src-25ecf164a41da4eb1378196a6a3f8e325dd7c819.tar.bz2
Remove ViewHostMsg_PluginMessage which was unused.
TEST=none BUG=none Review URL: http://codereview.chromium.org/171052 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@23623 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/renderer_host/resource_message_filter.cc35
-rw-r--r--chrome/browser/renderer_host/resource_message_filter.h5
-rw-r--r--chrome/common/render_messages_internal.h13
3 files changed, 0 insertions, 53 deletions
diff --git a/chrome/browser/renderer_host/resource_message_filter.cc b/chrome/browser/renderer_host/resource_message_filter.cc
index c4a476d..7ba1a47 100644
--- a/chrome/browser/renderer_host/resource_message_filter.cc
+++ b/chrome/browser/renderer_host/resource_message_filter.cc
@@ -283,8 +283,6 @@ bool ResourceMessageFilter::OnMessageReceived(const IPC::Message& msg) {
IPC_MESSAGE_HANDLER(ViewHostMsg_CreateWidget, OnMsgCreateWidget)
IPC_MESSAGE_HANDLER(ViewHostMsg_SetCookie, OnSetCookie)
IPC_MESSAGE_HANDLER(ViewHostMsg_GetCookies, OnGetCookies)
- IPC_MESSAGE_HANDLER(ViewHostMsg_PluginMessage, OnPluginMessage)
- IPC_MESSAGE_HANDLER(ViewHostMsg_PluginSyncMessage, OnPluginSyncMessage)
#if defined(OS_WIN) // This hack is Windows-specific.
IPC_MESSAGE_HANDLER(ViewHostMsg_LoadFont, OnLoadFont)
#endif
@@ -462,39 +460,6 @@ void ResourceMessageFilter::OnGetCookies(const GURL& url,
*cookies = context->cookie_store()->GetCookies(url);
}
-void ResourceMessageFilter::OnPluginMessage(const FilePath& plugin_path,
- const std::vector<uint8>& data) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
-
- ChromePluginLib *chrome_plugin = ChromePluginLib::Find(plugin_path);
- if (chrome_plugin) {
- void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0]));
- uint32 data_len = static_cast<uint32>(data.size());
- chrome_plugin->functions().on_message(data_ptr, data_len);
- }
-}
-
-void ResourceMessageFilter::OnPluginSyncMessage(const FilePath& plugin_path,
- const std::vector<uint8>& data,
- std::vector<uint8> *retval) {
- DCHECK(ChromeThread::CurrentlyOn(ChromeThread::IO));
-
- ChromePluginLib *chrome_plugin = ChromePluginLib::Find(plugin_path);
- if (chrome_plugin) {
- void *data_ptr = const_cast<void*>(reinterpret_cast<const void*>(&data[0]));
- uint32 data_len = static_cast<uint32>(data.size());
- void *retval_buffer = 0;
- uint32 retval_size = 0;
- chrome_plugin->functions().on_sync_message(data_ptr, data_len,
- &retval_buffer, &retval_size);
- if (retval_buffer) {
- retval->resize(retval_size);
- memcpy(&(retval->at(0)), retval_buffer, retval_size);
- CPB_Free(retval_buffer);
- }
- }
-}
-
#if defined(OS_WIN) // This hack is Windows-specific.
void ResourceMessageFilter::OnLoadFont(LOGFONT font) {
// If renderer is running in a sandbox, GetTextMetrics
diff --git a/chrome/browser/renderer_host/resource_message_filter.h b/chrome/browser/renderer_host/resource_message_filter.h
index 8df06f3..a84ee95 100644
--- a/chrome/browser/renderer_host/resource_message_filter.h
+++ b/chrome/browser/renderer_host/resource_message_filter.h
@@ -119,11 +119,6 @@ class ResourceMessageFilter : public IPC::ChannelProxy::MessageFilter,
void OnGetCookies(const GURL& url,
const GURL& first_party_for_cookies,
std::string* cookies);
- void OnPluginMessage(const FilePath& plugin_path,
- const std::vector<uint8>& message);
- void OnPluginSyncMessage(const FilePath& plugin_path,
- const std::vector<uint8>& message,
- std::vector<uint8> *retval);
void OnPluginFileDialog(const IPC::Message& msg,
bool multiple_files,
const std::wstring& title,
diff --git a/chrome/common/render_messages_internal.h b/chrome/common/render_messages_internal.h
index 80e5510..2a6b4d4 100644
--- a/chrome/common/render_messages_internal.h
+++ b/chrome/common/render_messages_internal.h
@@ -905,19 +905,6 @@ IPC_BEGIN_MESSAGES(ViewHost)
FilePath /* filename */,
std::string /* actual mime type for url */)
- // Allows a chrome plugin loaded in a renderer process to send arbitrary
- // data to an instance of the same plugin loaded in the browser process.
- IPC_MESSAGE_CONTROL2(ViewHostMsg_PluginMessage,
- FilePath /* plugin_path of plugin */,
- std::vector<uint8> /* opaque data */)
-
- // Allows a chrome plugin loaded in a renderer process to send arbitrary
- // data to an instance of the same plugin loaded in the browser process.
- IPC_SYNC_MESSAGE_CONTROL2_1(ViewHostMsg_PluginSyncMessage,
- FilePath /* plugin_path of plugin */,
- std::vector<uint8> /* opaque data */,
- std::vector<uint8> /* opaque data */)
-
// Requests spellcheck for a word.
IPC_SYNC_MESSAGE_ROUTED1_2(ViewHostMsg_SpellCheck,
std::wstring /* word to check */,