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 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 frame_tree_.root()->ResetForNewProcess(); | 304 frame_tree_.root()->ResetForNewProcess(); |
305 controller_->delegate()->DetachInterstitialPage(); | 305 controller_->delegate()->DetachInterstitialPage(); |
306 // Let's revert to the original title if necessary. | 306 // Let's revert to the original title if necessary. |
307 NavigationEntry* entry = controller_->GetVisibleEntry(); | 307 NavigationEntry* entry = controller_->GetVisibleEntry(); |
308 if (entry && !new_navigation_ && should_revert_web_contents_title_) { | 308 if (entry && !new_navigation_ && should_revert_web_contents_title_) { |
309 entry->SetTitle(original_web_contents_title_); | 309 entry->SetTitle(original_web_contents_title_); |
310 controller_->delegate()->NotifyNavigationStateChanged( | 310 controller_->delegate()->NotifyNavigationStateChanged( |
311 INVALIDATE_TYPE_TITLE); | 311 INVALIDATE_TYPE_TITLE); |
312 } | 312 } |
313 | 313 |
| 314 static_cast<WebContentsImpl*>(web_contents_)->DidChangeVisibleSSLState(); |
| 315 |
314 InterstitialPageMap::iterator iter = | 316 InterstitialPageMap::iterator iter = |
315 g_web_contents_to_interstitial_page->find(web_contents_); | 317 g_web_contents_to_interstitial_page->find(web_contents_); |
316 DCHECK(iter != g_web_contents_to_interstitial_page->end()); | 318 DCHECK(iter != g_web_contents_to_interstitial_page->end()); |
317 if (iter != g_web_contents_to_interstitial_page->end()) | 319 if (iter != g_web_contents_to_interstitial_page->end()) |
318 g_web_contents_to_interstitial_page->erase(iter); | 320 g_web_contents_to_interstitial_page->erase(iter); |
319 | 321 |
320 // Clear the WebContents pointer, because it may now be deleted. | 322 // Clear the WebContents pointer, because it may now be deleted. |
321 // This signifies that we are in the process of shutting down. | 323 // This signifies that we are in the process of shutting down. |
322 web_contents_ = NULL; | 324 web_contents_ = NULL; |
323 } | 325 } |
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( | 942 void InterstitialPageImpl::UnderlyingContentObserver::NavigationEntryCommitted( |
941 const LoadCommittedDetails& load_details) { | 943 const LoadCommittedDetails& load_details) { |
942 interstitial_->OnNavigatingAwayOrTabClosing(); | 944 interstitial_->OnNavigatingAwayOrTabClosing(); |
943 } | 945 } |
944 | 946 |
945 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { | 947 void InterstitialPageImpl::UnderlyingContentObserver::WebContentsDestroyed() { |
946 interstitial_->OnNavigatingAwayOrTabClosing(); | 948 interstitial_->OnNavigatingAwayOrTabClosing(); |
947 } | 949 } |
948 | 950 |
949 } // namespace content | 951 } // namespace content |
OLD | NEW |