| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/web_contents/interstitial_page_impl.h" | 5 #include "content/browser/web_contents/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 339 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 350 } | 350 } |
| 351 | 351 |
| 352 RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() { | 352 RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() { |
| 353 return rvh_delegate_view_.get(); | 353 return rvh_delegate_view_.get(); |
| 354 } | 354 } |
| 355 | 355 |
| 356 const GURL& InterstitialPageImpl::GetURL() const { | 356 const GURL& InterstitialPageImpl::GetURL() const { |
| 357 return url_; | 357 return url_; |
| 358 } | 358 } |
| 359 | 359 |
| 360 void InterstitialPageImpl::RenderViewGone(RenderViewHost* render_view_host, | 360 void InterstitialPageImpl::RenderViewTerminated( |
| 361 base::TerminationStatus status, | 361 RenderViewHost* render_view_host, |
| 362 int error_code) { | 362 base::TerminationStatus status, |
| 363 int error_code) { |
| 363 // Our renderer died. This should not happen in normal cases. | 364 // Our renderer died. This should not happen in normal cases. |
| 364 // If we haven't already started shutdown, just dismiss the interstitial. | 365 // If we haven't already started shutdown, just dismiss the interstitial. |
| 365 // We cannot check for enabled() here, because we may have called Disable | 366 // We cannot check for enabled() here, because we may have called Disable |
| 366 // without calling Hide. | 367 // without calling Hide. |
| 367 if (render_view_host_) | 368 if (render_view_host_) |
| 368 DontProceed(); | 369 DontProceed(); |
| 369 } | 370 } |
| 370 | 371 |
| 371 void InterstitialPageImpl::DidNavigate( | 372 void InterstitialPageImpl::DidNavigate( |
| 372 RenderViewHost* render_view_host, | 373 RenderViewHost* render_view_host, |
| (...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 788 | 789 |
| 789 web_contents->GetDelegateView()->TakeFocus(reverse); | 790 web_contents->GetDelegateView()->TakeFocus(reverse); |
| 790 } | 791 } |
| 791 | 792 |
| 792 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( | 793 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( |
| 793 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 794 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
| 794 int active_match_ordinal, bool final_update) { | 795 int active_match_ordinal, bool final_update) { |
| 795 } | 796 } |
| 796 | 797 |
| 797 } // namespace content | 798 } // namespace content |
| OLD | NEW |