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 2153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2164 | 2164 |
2165 void WebContentsImpl::OnDidDisplayInsecureContent() { | 2165 void WebContentsImpl::OnDidDisplayInsecureContent() { |
2166 RecordAction(UserMetricsAction("SSL.DisplayedInsecureContent")); | 2166 RecordAction(UserMetricsAction("SSL.DisplayedInsecureContent")); |
2167 displayed_insecure_content_ = true; | 2167 displayed_insecure_content_ = true; |
2168 SSLManager::NotifySSLInternalStateChanged( | 2168 SSLManager::NotifySSLInternalStateChanged( |
2169 GetController().GetBrowserContext()); | 2169 GetController().GetBrowserContext()); |
2170 } | 2170 } |
2171 | 2171 |
2172 void WebContentsImpl::OnDidRunInsecureContent( | 2172 void WebContentsImpl::OnDidRunInsecureContent( |
2173 const std::string& security_origin, const GURL& target_url) { | 2173 const std::string& security_origin, const GURL& target_url) { |
2174 LOG(INFO) << security_origin << " ran insecure content from " | 2174 VLOG(0) << security_origin << " ran insecure content from " |
2175 << target_url.possibly_invalid_spec(); | 2175 << target_url.possibly_invalid_spec(); |
2176 RecordAction(UserMetricsAction("SSL.RanInsecureContent")); | 2176 RecordAction(UserMetricsAction("SSL.RanInsecureContent")); |
2177 if (EndsWith(security_origin, kDotGoogleDotCom, false)) | 2177 if (EndsWith(security_origin, kDotGoogleDotCom, false)) |
2178 RecordAction(UserMetricsAction("SSL.RanInsecureContentGoogle")); | 2178 RecordAction(UserMetricsAction("SSL.RanInsecureContentGoogle")); |
2179 controller_.ssl_manager()->DidRunInsecureContent(security_origin); | 2179 controller_.ssl_manager()->DidRunInsecureContent(security_origin); |
2180 displayed_insecure_content_ = true; | 2180 displayed_insecure_content_ = true; |
2181 SSLManager::NotifySSLInternalStateChanged( | 2181 SSLManager::NotifySSLInternalStateChanged( |
2182 GetController().GetBrowserContext()); | 2182 GetController().GetBrowserContext()); |
2183 } | 2183 } |
2184 | 2184 |
2185 void WebContentsImpl::OnDocumentLoadedInFrame(int64 frame_id) { | 2185 void WebContentsImpl::OnDocumentLoadedInFrame(int64 frame_id) { |
(...skipping 1496 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3682 } | 3682 } |
3683 | 3683 |
3684 void WebContentsImpl::OnFrameRemoved( | 3684 void WebContentsImpl::OnFrameRemoved( |
3685 RenderViewHostImpl* render_view_host, | 3685 RenderViewHostImpl* render_view_host, |
3686 int64 frame_id) { | 3686 int64 frame_id) { |
3687 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 3687 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
3688 FrameDetached(render_view_host, frame_id)); | 3688 FrameDetached(render_view_host, frame_id)); |
3689 } | 3689 } |
3690 | 3690 |
3691 } // namespace content | 3691 } // namespace content |
OLD | NEW |