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/web_contents_impl.h" | 5 #include "content/browser/web_contents/web_contents_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 2683 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2694 // clicking on a link); see bugs 1184641 and 980803. We don't want to | 2694 // clicking on a link); see bugs 1184641 and 980803. We don't want to |
2695 // clear the bubble when a user navigates to a named anchor in the same | 2695 // clear the bubble when a user navigates to a named anchor in the same |
2696 // page. | 2696 // page. |
2697 UpdateTargetURL(details.entry->GetPageID(), GURL()); | 2697 UpdateTargetURL(details.entry->GetPageID(), GURL()); |
2698 } | 2698 } |
2699 | 2699 |
2700 if (!details.is_in_page) { | 2700 if (!details.is_in_page) { |
2701 // Once the main frame is navigated, we're no longer considered to have | 2701 // Once the main frame is navigated, we're no longer considered to have |
2702 // displayed insecure content. | 2702 // displayed insecure content. |
2703 displayed_insecure_content_ = false; | 2703 displayed_insecure_content_ = false; |
| 2704 SSLManager::NotifySSLInternalStateChanged( |
| 2705 GetController().GetBrowserContext()); |
2704 } | 2706 } |
2705 | 2707 |
2706 // Notify observers about navigation. | 2708 // Notify observers about navigation. |
2707 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2709 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
2708 DidNavigateMainFrame(details, params)); | 2710 DidNavigateMainFrame(details, params)); |
2709 } | 2711 } |
2710 | 2712 |
2711 void WebContentsImpl::DidNavigateAnyFramePostCommit( | 2713 void WebContentsImpl::DidNavigateAnyFramePostCommit( |
2712 RenderViewHost* render_view_host, | 2714 RenderViewHost* render_view_host, |
2713 const LoadCommittedDetails& details, | 2715 const LoadCommittedDetails& details, |
(...skipping 1014 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3728 } | 3730 } |
3729 | 3731 |
3730 void WebContentsImpl::ClearAllPowerSaveBlockers() { | 3732 void WebContentsImpl::ClearAllPowerSaveBlockers() { |
3731 for (PowerSaveBlockerMap::iterator i(power_save_blockers_.begin()); | 3733 for (PowerSaveBlockerMap::iterator i(power_save_blockers_.begin()); |
3732 i != power_save_blockers_.end(); ++i) | 3734 i != power_save_blockers_.end(); ++i) |
3733 STLDeleteValues(&power_save_blockers_[i->first]); | 3735 STLDeleteValues(&power_save_blockers_[i->first]); |
3734 power_save_blockers_.clear(); | 3736 power_save_blockers_.clear(); |
3735 } | 3737 } |
3736 | 3738 |
3737 } // namespace content | 3739 } // namespace content |
OLD | NEW |