diff options
author | bryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 00:59:18 +0000 |
---|---|---|
committer | bryner@chromium.org <bryner@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-09-23 00:59:18 +0000 |
commit | 31c90db374866268c693039423d05f1e5b82de47 (patch) | |
tree | d63c08c8163734d5a85a596bfd3b04340c086a05 /chrome/renderer | |
parent | 751ab239964c3b83bd21022f8595e5a665633ac5 (diff) | |
download | chromium_src-31c90db374866268c693039423d05f1e5b82de47.zip chromium_src-31c90db374866268c693039423d05f1e5b82de47.tar.gz chromium_src-31c90db374866268c693039423d05f1e5b82de47.tar.bz2 |
Add an IPC message that will be used to send the phishing classification model
from the browser to the renderer.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/3484001
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@60249 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/renderer')
-rw-r--r-- | chrome/renderer/render_thread.cc | 6 | ||||
-rw-r--r-- | chrome/renderer/render_thread.h | 2 |
2 files changed, 8 insertions, 0 deletions
diff --git a/chrome/renderer/render_thread.cc b/chrome/renderer/render_thread.cc index a067435..2729d14 100644 --- a/chrome/renderer/render_thread.cc +++ b/chrome/renderer/render_thread.cc @@ -630,6 +630,7 @@ void RenderThread::OnControlMessageReceived(const IPC::Message& msg) { IPC_MESSAGE_HANDLER(ViewMsg_SpellChecker_EnableAutoSpellCorrect, OnSpellCheckEnableAutoSpellCorrect) IPC_MESSAGE_HANDLER(ViewMsg_GpuChannelEstablished, OnGpuChannelEstablished) + IPC_MESSAGE_HANDLER(ViewMsg_SetPhishingModel, OnSetPhishingModel) IPC_END_MESSAGE_MAP() } @@ -1104,6 +1105,11 @@ void RenderThread::OnGpuChannelEstablished( } } +void RenderThread::OnSetPhishingModel(IPC::PlatformFileForTransit model_file) { + // TODO(bryner): create a Scorer from the model file, and propagate it to the + // RenderViews so that they can create PhishingClassifiers. +} + scoped_refptr<base::MessageLoopProxy> RenderThread::GetFileThreadMessageLoopProxy() { DCHECK(message_loop() == MessageLoop::current()); diff --git a/chrome/renderer/render_thread.h b/chrome/renderer/render_thread.h index 76d9428..6b28214 100644 --- a/chrome/renderer/render_thread.h +++ b/chrome/renderer/render_thread.h @@ -293,6 +293,8 @@ class RenderThread : public RenderThreadBase, void OnGpuChannelEstablished(const IPC::ChannelHandle& channel_handle, const GPUInfo& gpu_info); + void OnSetPhishingModel(IPC::PlatformFileForTransit model_file); + void OnGetAccessibilityTree(); // Gather usage statistics from the in-memory cache and inform our host. |