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

Unified Diff: chrome/browser/prerender/prerender_tab_helper.cc

Issue 7835004: Moved the following IPCs out of chrome into content where they are handled by (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 4 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/browser/prerender/prerender_tab_helper.cc
===================================================================
--- chrome/browser/prerender/prerender_tab_helper.cc (revision 99462)
+++ chrome/browser/prerender/prerender_tab_helper.cc (working copy)
@@ -207,19 +207,10 @@
MaybeUsePrerenderedPage(url, has_opener_set);
}
-bool PrerenderTabHelper::OnMessageReceived(const IPC::Message& message) {
- IPC_BEGIN_MESSAGE_MAP(PrerenderTabHelper, message)
- IPC_MESSAGE_HANDLER(ViewHostMsg_DidStartProvisionalLoadForFrame,
- OnDidStartProvisionalLoadForFrame)
- IPC_MESSAGE_HANDLER(ViewHostMsg_UpdateTargetURL, OnMsgUpdateTargetURL)
- IPC_END_MESSAGE_MAP()
- return false;
-}
-
-void PrerenderTabHelper::OnDidStartProvisionalLoadForFrame(int64 frame_id,
- bool is_main_frame,
- bool has_opener_set,
- const GURL& url) {
+void PrerenderTabHelper::DidStartProvisionalLoadForFrame(int64 frame_id,
+ bool is_main_frame,
+ bool has_opener_set,
+ const GURL& url) {
if (is_main_frame) {
RecordPageviewEvent(PAGEVIEW_EVENT_LOAD_START);
if (IsTopSite(url))
@@ -236,7 +227,7 @@
}
}
-void PrerenderTabHelper::OnMsgUpdateTargetURL(int32 page_id, const GURL& url) {
+void PrerenderTabHelper::UpdateTargetURL(int32 page_id, const GURL& url) {
for (int i = 0; i < kNumHoverThresholds; i++)
last_hovers_[i].RecordHover(url);

Powered by Google App Engine
This is Rietveld 408576698