| 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 <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 4251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4262 } | 4262 } |
| 4263 } else { | 4263 } else { |
| 4264 RenderFrameHostImpl* source_rfhi = | 4264 RenderFrameHostImpl* source_rfhi = |
| 4265 static_cast<RenderFrameHostImpl*>(source_rfh); | 4265 static_cast<RenderFrameHostImpl*>(source_rfh); |
| 4266 source_rfhi->frame_tree_node()->render_manager()->CreateOpenerProxies( | 4266 source_rfhi->frame_tree_node()->render_manager()->CreateOpenerProxies( |
| 4267 GetSiteInstance(), nullptr); | 4267 GetSiteInstance(), nullptr); |
| 4268 } | 4268 } |
| 4269 } | 4269 } |
| 4270 } | 4270 } |
| 4271 | 4271 |
| 4272 void WebContentsImpl::TriedDisplayingInsecureContent(RenderFrameHost* rfh, |
| 4273 const GURL& origin, |
| 4274 const GURL& url) { |
| 4275 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 4276 OnTriedDisplayingInsecureContent(rfh, origin, url)); |
| 4277 } |
| 4278 void WebContentsImpl::TriedRunningInsecureContent(RenderFrameHost* rfh, |
| 4279 const GURL& origin, |
| 4280 const GURL& url) { |
| 4281 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 4282 OnTriedRunningInsecureContent(rfh, origin, url)); |
| 4283 } |
| 4284 |
| 4272 bool WebContentsImpl::AddMessageToConsole(int32_t level, | 4285 bool WebContentsImpl::AddMessageToConsole(int32_t level, |
| 4273 const base::string16& message, | 4286 const base::string16& message, |
| 4274 int32_t line_no, | 4287 int32_t line_no, |
| 4275 const base::string16& source_id) { | 4288 const base::string16& source_id) { |
| 4276 if (!delegate_) | 4289 if (!delegate_) |
| 4277 return false; | 4290 return false; |
| 4278 return delegate_->AddMessageToConsole(this, level, message, line_no, | 4291 return delegate_->AddMessageToConsole(this, level, message, line_no, |
| 4279 source_id); | 4292 source_id); |
| 4280 } | 4293 } |
| 4281 | 4294 |
| (...skipping 439 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4721 const WebContentsObserver::MediaPlayerId& id) { | 4734 const WebContentsObserver::MediaPlayerId& id) { |
| 4722 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); | 4735 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); |
| 4723 } | 4736 } |
| 4724 | 4737 |
| 4725 void WebContentsImpl::MediaStoppedPlaying( | 4738 void WebContentsImpl::MediaStoppedPlaying( |
| 4726 const WebContentsObserver::MediaPlayerId& id) { | 4739 const WebContentsObserver::MediaPlayerId& id) { |
| 4727 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); | 4740 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); |
| 4728 } | 4741 } |
| 4729 | 4742 |
| 4730 } // namespace content | 4743 } // namespace content |
| OLD | NEW |