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

Unified Diff: chrome/renderer/render_thread.cc

Issue 42158: Get rid of the gears in renderer process code. This allows me to do some cle... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/render_thread.cc
===================================================================
--- chrome/renderer/render_thread.cc (revision 11593)
+++ chrome/renderer/render_thread.cc (working copy)
@@ -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 @@
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.

Powered by Google App Engine
This is Rietveld 408576698