| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <cmath> | 9 #include <cmath> |
| 10 #include <utility> | 10 #include <utility> |
| (...skipping 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 false); // reset_state | 903 false); // reset_state |
| 904 } | 904 } |
| 905 if (browser_plugin_embedder_) | 905 if (browser_plugin_embedder_) |
| 906 browser_plugin_embedder_->CancelGuestDialogs(); | 906 browser_plugin_embedder_->CancelGuestDialogs(); |
| 907 } | 907 } |
| 908 | 908 |
| 909 void WebContentsImpl::ClosePage() { | 909 void WebContentsImpl::ClosePage() { |
| 910 GetRenderViewHost()->ClosePage(); | 910 GetRenderViewHost()->ClosePage(); |
| 911 } | 911 } |
| 912 | 912 |
| 913 void WebContentsImpl::OnReplaced(WebContents* new_contents) { |
| 914 for (auto& observer : observers_) |
| 915 observer.WebContentsReplaced(this, new_contents); |
| 916 } |
| 917 |
| 913 RenderWidgetHostView* WebContentsImpl::GetRenderWidgetHostView() const { | 918 RenderWidgetHostView* WebContentsImpl::GetRenderWidgetHostView() const { |
| 914 return GetRenderManager()->GetRenderWidgetHostView(); | 919 return GetRenderManager()->GetRenderWidgetHostView(); |
| 915 } | 920 } |
| 916 | 921 |
| 917 RenderWidgetHostView* WebContentsImpl::GetTopLevelRenderWidgetHostView() { | 922 RenderWidgetHostView* WebContentsImpl::GetTopLevelRenderWidgetHostView() { |
| 918 if (GetOuterWebContents()) | 923 if (GetOuterWebContents()) |
| 919 return GetOuterWebContents()->GetTopLevelRenderWidgetHostView(); | 924 return GetOuterWebContents()->GetTopLevelRenderWidgetHostView(); |
| 920 return GetRenderManager()->GetRenderWidgetHostView(); | 925 return GetRenderManager()->GetRenderWidgetHostView(); |
| 921 } | 926 } |
| 922 | 927 |
| (...skipping 4497 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5420 GetMainFrame()->AddMessageToConsole( | 5425 GetMainFrame()->AddMessageToConsole( |
| 5421 content::CONSOLE_MESSAGE_LEVEL_WARNING, | 5426 content::CONSOLE_MESSAGE_LEVEL_WARNING, |
| 5422 base::StringPrintf("This site does not have a valid SSL " | 5427 base::StringPrintf("This site does not have a valid SSL " |
| 5423 "certificate! Without SSL, your site's and " | 5428 "certificate! Without SSL, your site's and " |
| 5424 "visitors' data is vulnerable to theft and " | 5429 "visitors' data is vulnerable to theft and " |
| 5425 "tampering. Get a valid SSL certificate before" | 5430 "tampering. Get a valid SSL certificate before" |
| 5426 " releasing your website to the public.")); | 5431 " releasing your website to the public.")); |
| 5427 } | 5432 } |
| 5428 | 5433 |
| 5429 } // namespace content | 5434 } // namespace content |
| OLD | NEW |