OLD | NEW |
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 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
364 // WebContentsImpl will only call WebContentsWillBeDestroyed for interstitial | 364 // WebContentsImpl will only call WebContentsWillBeDestroyed for interstitial |
365 // pages that it knows about, pages that called | 365 // pages that it knows about, pages that called |
366 // WebContentsImpl::AttachInterstitialPage. But it's possible to have an | 366 // WebContentsImpl::AttachInterstitialPage. But it's possible to have an |
367 // interstitial page that never progressed that far. In that case, ensure that | 367 // interstitial page that never progressed that far. In that case, ensure that |
368 // this interstitial page is destroyed. (And if it was attached, and | 368 // this interstitial page is destroyed. (And if it was attached, and |
369 // OnNavigatingAwayOrTabClosing was called, it's safe to call | 369 // OnNavigatingAwayOrTabClosing was called, it's safe to call |
370 // OnNavigatingAwayOrTabClosing twice.) | 370 // OnNavigatingAwayOrTabClosing twice.) |
371 OnNavigatingAwayOrTabClosing(); | 371 OnNavigatingAwayOrTabClosing(); |
372 } | 372 } |
373 | 373 |
| 374 bool InterstitialPageImpl::OnMessageReceived( |
| 375 const IPC::Message& message, |
| 376 RenderFrameHost* render_frame_host) { |
| 377 return OnMessageReceived(message); |
| 378 } |
| 379 |
374 bool InterstitialPageImpl::OnMessageReceived(RenderFrameHost* render_frame_host, | 380 bool InterstitialPageImpl::OnMessageReceived(RenderFrameHost* render_frame_host, |
375 const IPC::Message& message) { | 381 const IPC::Message& message) { |
376 return OnMessageReceived(message); | 382 return OnMessageReceived(message); |
377 } | 383 } |
378 | 384 |
379 bool InterstitialPageImpl::OnMessageReceived(RenderViewHost* render_view_host, | 385 bool InterstitialPageImpl::OnMessageReceived(RenderViewHost* render_view_host, |
380 const IPC::Message& message) { | 386 const IPC::Message& message) { |
381 return OnMessageReceived(message); | 387 return OnMessageReceived(message); |
382 } | 388 } |
383 | 389 |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
908 | 914 |
909 web_contents->GetDelegateView()->TakeFocus(reverse); | 915 web_contents->GetDelegateView()->TakeFocus(reverse); |
910 } | 916 } |
911 | 917 |
912 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( | 918 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( |
913 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 919 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
914 int active_match_ordinal, bool final_update) { | 920 int active_match_ordinal, bool final_update) { |
915 } | 921 } |
916 | 922 |
917 } // namespace content | 923 } // namespace content |
OLD | NEW |