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

Side by Side Diff: content/browser/frame_host/interstitial_page_impl.cc

Issue 253013002: Pass RenderFrameHost to WebContentObservers' message handlers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo in RenderHostTracker Created 6 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/frame_host/interstitial_page_impl.h" 5 #include "content/browser/frame_host/interstitial_page_impl.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
365 // WebContentsImpl will only call WebContentsWillBeDestroyed for interstitial 365 // WebContentsImpl will only call WebContentsWillBeDestroyed for interstitial
366 // pages that it knows about, pages that called 366 // pages that it knows about, pages that called
367 // WebContentsImpl::AttachInterstitialPage. But it's possible to have an 367 // WebContentsImpl::AttachInterstitialPage. But it's possible to have an
368 // interstitial page that never progressed that far. In that case, ensure that 368 // interstitial page that never progressed that far. In that case, ensure that
369 // this interstitial page is destroyed. (And if it was attached, and 369 // this interstitial page is destroyed. (And if it was attached, and
370 // OnNavigatingAwayOrTabClosing was called, it's safe to call 370 // OnNavigatingAwayOrTabClosing was called, it's safe to call
371 // OnNavigatingAwayOrTabClosing twice.) 371 // OnNavigatingAwayOrTabClosing twice.)
372 OnNavigatingAwayOrTabClosing(); 372 OnNavigatingAwayOrTabClosing();
373 } 373 }
374 374
375 bool InterstitialPageImpl::OnMessageReceived(
376 const IPC::Message& message,
377 RenderFrameHost* render_frame_host) {
378 return OnMessageReceived(message);
379 }
380
375 bool InterstitialPageImpl::OnMessageReceived(RenderFrameHost* render_frame_host, 381 bool InterstitialPageImpl::OnMessageReceived(RenderFrameHost* render_frame_host,
376 const IPC::Message& message) { 382 const IPC::Message& message) {
377 return OnMessageReceived(message); 383 return OnMessageReceived(message);
378 } 384 }
379 385
380 bool InterstitialPageImpl::OnMessageReceived(RenderViewHost* render_view_host, 386 bool InterstitialPageImpl::OnMessageReceived(RenderViewHost* render_view_host,
381 const IPC::Message& message) { 387 const IPC::Message& message) {
382 return OnMessageReceived(message); 388 return OnMessageReceived(message);
383 } 389 }
384 390
(...skipping 525 matching lines...) Expand 10 before | Expand all | Expand 10 after
910 916
911 web_contents->GetDelegateView()->TakeFocus(reverse); 917 web_contents->GetDelegateView()->TakeFocus(reverse);
912 } 918 }
913 919
914 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( 920 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply(
915 int request_id, int number_of_matches, const gfx::Rect& selection_rect, 921 int request_id, int number_of_matches, const gfx::Rect& selection_rect,
916 int active_match_ordinal, bool final_update) { 922 int active_match_ordinal, bool final_update) {
917 } 923 }
918 924
919 } // namespace content 925 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698