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 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
394 // Note this is only for subframes in the interstitial, the notification for | 394 // Note this is only for subframes in the interstitial, the notification for |
395 // the main frame happens in RenderViewCreated. | 395 // the main frame happens in RenderViewCreated. |
396 controller_->delegate()->RenderFrameForInterstitialPageCreated( | 396 controller_->delegate()->RenderFrameForInterstitialPageCreated( |
397 render_frame_host); | 397 render_frame_host); |
398 } | 398 } |
399 | 399 |
400 RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() { | 400 RenderViewHostDelegateView* InterstitialPageImpl::GetDelegateView() { |
401 return rvh_delegate_view_.get(); | 401 return rvh_delegate_view_.get(); |
402 } | 402 } |
403 | 403 |
404 const GURL& InterstitialPageImpl::GetURL() const { | 404 const GURL& InterstitialPageImpl::GetMainFrameLastCommittedURL() const { |
405 return url_; | 405 return url_; |
406 } | 406 } |
407 | 407 |
408 void InterstitialPageImpl::RenderViewTerminated( | 408 void InterstitialPageImpl::RenderViewTerminated( |
409 RenderViewHost* render_view_host, | 409 RenderViewHost* render_view_host, |
410 base::TerminationStatus status, | 410 base::TerminationStatus status, |
411 int error_code) { | 411 int error_code) { |
412 // Our renderer died. This should not happen in normal cases. | 412 // Our renderer died. This should not happen in normal cases. |
413 // If we haven't already started shutdown, just dismiss the interstitial. | 413 // If we haven't already started shutdown, just dismiss the interstitial. |
414 // We cannot check for enabled() here, because we may have called Disable | 414 // We cannot check for enabled() here, because we may have called Disable |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
897 | 897 |
898 web_contents->GetDelegateView()->TakeFocus(reverse); | 898 web_contents->GetDelegateView()->TakeFocus(reverse); |
899 } | 899 } |
900 | 900 |
901 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( | 901 void InterstitialPageImpl::InterstitialPageRVHDelegateView::OnFindReply( |
902 int request_id, int number_of_matches, const gfx::Rect& selection_rect, | 902 int request_id, int number_of_matches, const gfx::Rect& selection_rect, |
903 int active_match_ordinal, bool final_update) { | 903 int active_match_ordinal, bool final_update) { |
904 } | 904 } |
905 | 905 |
906 } // namespace content | 906 } // namespace content |
OLD | NEW |