diff options
author | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 00:18:06 +0000 |
---|---|---|
committer | jam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-03-13 00:18:06 +0000 |
commit | 88a1fb47ae5abed1c518cdb63836199431ac5af7 (patch) | |
tree | 6bd2be5124623c48546122c80b94a3b203352fe1 /chrome/renderer/render_thread.cc | |
parent | 226183d33f7e52d01d38cad1cfb2e70b938ae74e (diff) | |
download | chromium_src-88a1fb47ae5abed1c518cdb63836199431ac5af7.zip chromium_src-88a1fb47ae5abed1c518cdb63836199431ac5af7.tar.gz chromium_src-88a1fb47ae5abed1c518cdb63836199431ac5af7.tar.bz2 |
Get rid of the gears in renderer process code. This allows me to do some cleanup in how resource dispatching happens in a future cl.
Review URL: http://codereview.chromium.org/42158
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@11601 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer/render_thread.cc')
-rw-r--r-- | chrome/renderer/render_thread.cc | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc index 1c04cc1..846e866 100644 --- a/chrome/renderer/render_thread.cc +++ b/chrome/renderer/render_thread.cc @@ -10,7 +10,6 @@ #include "base/command_line.h" #include "base/shared_memory.h" #include "base/stats_table.h" -#include "chrome/common/chrome_plugin_lib.h" #include "chrome/common/chrome_switches.h" #include "chrome/common/render_messages.h" #include "chrome/common/notification_service.h" @@ -158,26 +157,11 @@ void RenderThread::OnControlMessageReceived(const IPC::Message& msg) { OnGetRendererHistograms) IPC_MESSAGE_HANDLER(ViewMsg_GetCacheResourceStats, OnGetCacheResourceStats) - IPC_MESSAGE_HANDLER(ViewMsg_PluginMessage, OnPluginMessage) IPC_MESSAGE_HANDLER(ViewMsg_UserScripts_NewScripts, OnUpdateUserScripts) IPC_END_MESSAGE_MAP() } -void RenderThread::OnPluginMessage(const FilePath& plugin_path, - const std::vector<uint8>& data) { - if (!ChromePluginLib::IsInitialized()) { - return; - } - CHECK(ChromePluginLib::IsPluginThread()); - 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 RenderThread::OnSetNextPageID(int32 next_page_id) { // This should only be called at process initialization time, so we shouldn't // have to worry about thread-safety. |