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

Unified Diff: content/browser/tab_contents/tab_contents.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: content/browser/tab_contents/tab_contents.cc
===================================================================
--- content/browser/tab_contents/tab_contents.cc (revision 99462)
+++ content/browser/tab_contents/tab_contents.cc (working copy)
@@ -307,6 +307,7 @@
IPC_MESSAGE_HANDLER(ViewHostMsg_WebIntentDispatch,
OnWebIntentDispatch)
IPC_MESSAGE_HANDLER(ViewHostMsg_Find_Reply, OnFindReply)
+ IPC_MESSAGE_HANDLER(ViewHostMsg_CrashedPlugin, OnCrashedPlugin)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP_EX()
@@ -901,6 +902,9 @@
bool is_main_frame,
bool has_opener_set,
const GURL& url) {
+ delegate()->DidStartProvisionalLoadForFrame(this, frame_id, is_main_frame,
jam 2011/09/03 00:10:47 is this new delegate method really necessary? the
ananta 2011/09/03 00:43:23 Thanks for pointing that out. Done.
+ has_opener_set, url);
+
bool is_error_page = (url.spec() == chrome::kUnreachableWebDataURL);
GURL validated_url(url);
render_view_host()->FilterURL(ChildProcessSecurityPolicy::GetInstance(),
@@ -1146,6 +1150,10 @@
active_match_ordinal, final_update);
}
+void TabContents::OnCrashedPlugin(const FilePath& plugin_path) {
+ delegate()->CrashedPlugin(this, plugin_path);
+}
+
// Notifies the RenderWidgetHost instance about the fact that the page is
// loading, or done loading and calls the base implementation.
void TabContents::SetIsLoading(bool is_loading,
@@ -1606,7 +1614,7 @@
void TabContents::UpdateTargetURL(int32 page_id, const GURL& url) {
if (delegate())
- delegate()->UpdateTargetURL(this, url);
+ delegate()->UpdateTargetURL(this, page_id, url);
}
void TabContents::Close(RenderViewHost* rvh) {

Powered by Google App Engine
This is Rietveld 408576698