summaryrefslogtreecommitdiffstats
path: root/chrome/browser/prerender
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 16:17:23 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-28 16:17:23 +0000
commit44c49c9f1e003331995f06b79f43138b4264f8ed (patch)
tree036eea83eaffe12e86cca1061af3ce01f4235231 /chrome/browser/prerender
parent069910d68691e3b03ec6a673787c91af6f7c52ae (diff)
downloadchromium_src-44c49c9f1e003331995f06b79f43138b4264f8ed.zip
chromium_src-44c49c9f1e003331995f06b79f43138b4264f8ed.tar.gz
chromium_src-44c49c9f1e003331995f06b79f43138b4264f8ed.tar.bz2
Move extension messages to their own file and add a RenderViewObserver to start moving the extension code out of RenderView.
TBR=aa Review URL: http://codereview.chromium.org/6735004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79561 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/prerender')
-rw-r--r--chrome/browser/prerender/prerender_contents.cc4
-rw-r--r--chrome/browser/prerender/prerender_contents.h3
2 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/prerender/prerender_contents.cc b/chrome/browser/prerender/prerender_contents.cc
index 172ae37..1d4164b 100644
--- a/chrome/browser/prerender/prerender_contents.cc
+++ b/chrome/browser/prerender/prerender_contents.cc
@@ -16,7 +16,7 @@
#include "chrome/browser/ui/login/login_prompt.h"
#include "chrome/common/extensions/extension_constants.h"
#include "chrome/common/render_messages.h"
-#include "chrome/common/render_messages_params.h"
+#include "chrome/common/extensions/extension_messages.h"
#include "chrome/common/url_constants.h"
#include "chrome/common/view_types.h"
#include "content/browser/browsing_instance.h"
@@ -360,7 +360,7 @@ WebPreferences PrerenderContents::GetWebkitPrefs() {
}
void PrerenderContents::ProcessWebUIMessage(
- const ViewHostMsg_DomMessage_Params& params) {
+ const ExtensionHostMsg_DomMessage_Params& params) {
render_view_host_->BlockExtensionRequest(params.request_id);
}
diff --git a/chrome/browser/prerender/prerender_contents.h b/chrome/browser/prerender/prerender_contents.h
index 6c20b56..7ec68e1 100644
--- a/chrome/browser/prerender/prerender_contents.h
+++ b/chrome/browser/prerender/prerender_contents.h
@@ -115,7 +115,8 @@ class PrerenderContents : public RenderViewHostDelegate,
int32 page_id,
const std::wstring& title);
virtual WebPreferences GetWebkitPrefs();
- virtual void ProcessWebUIMessage(const ViewHostMsg_DomMessage_Params& params);
+ virtual void ProcessWebUIMessage(
+ const ExtensionHostMsg_DomMessage_Params& params);
virtual void RunJavaScriptMessage(const std::wstring& message,
const std::wstring& default_prompt,
const GURL& frame_url,