Chromium Code Reviews| 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 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 693 } | 693 } |
| 694 | 694 |
| 695 RenderFrameHost* InterstitialPageImpl::GetMainFrame() const { | 695 RenderFrameHost* InterstitialPageImpl::GetMainFrame() const { |
| 696 return render_view_host_->GetMainFrame(); | 696 return render_view_host_->GetMainFrame(); |
| 697 } | 697 } |
| 698 | 698 |
| 699 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { | 699 InterstitialPageDelegate* InterstitialPageImpl::GetDelegateForTesting() { |
| 700 return delegate_.get(); | 700 return delegate_.get(); |
| 701 } | 701 } |
| 702 | 702 |
| 703 WebContents* InterstitialPageImpl::GetAsWebContents() { | |
| 704 return web_contents_; | |
|
Charlie Reis
2015/04/27 23:39:26
This feels super risky to me.
If callers hear som
| |
| 705 } | |
| 706 | |
| 703 void InterstitialPageImpl::DontCreateViewForTesting() { | 707 void InterstitialPageImpl::DontCreateViewForTesting() { |
| 704 create_view_ = false; | 708 create_view_ = false; |
| 705 } | 709 } |
| 706 | 710 |
| 707 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const { | 711 gfx::Rect InterstitialPageImpl::GetRootWindowResizerRect() const { |
| 708 return gfx::Rect(); | 712 return gfx::Rect(); |
| 709 } | 713 } |
| 710 | 714 |
| 711 void InterstitialPageImpl::CreateNewWindow( | 715 void InterstitialPageImpl::CreateNewWindow( |
| 712 int render_process_id, | 716 int render_process_id, |
| (...skipping 181 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 894 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( | 898 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( |
| 895 const LoadCommittedDetails& load_details) { | 899 const LoadCommittedDetails& load_details) { |
| 896 interstitial_->OnNavigatingAwayOrTabClosing(); | 900 interstitial_->OnNavigatingAwayOrTabClosing(); |
| 897 } | 901 } |
| 898 | 902 |
| 899 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { | 903 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { |
| 900 interstitial_->OnNavigatingAwayOrTabClosing(); | 904 interstitial_->OnNavigatingAwayOrTabClosing(); |
| 901 } | 905 } |
| 902 | 906 |
| 903 } // namespace content | 907 } // namespace content |
| OLD | NEW |