| 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/lazy_instance.h" | 10 #include "base/lazy_instance.h" |
| (...skipping 2988 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2999 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 2999 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 3000 DidOpenRequestedURL(new_contents, | 3000 DidOpenRequestedURL(new_contents, |
| 3001 render_frame_host, | 3001 render_frame_host, |
| 3002 params.url, | 3002 params.url, |
| 3003 params.referrer, | 3003 params.referrer, |
| 3004 params.disposition, | 3004 params.disposition, |
| 3005 params.transition)); | 3005 params.transition)); |
| 3006 } | 3006 } |
| 3007 } | 3007 } |
| 3008 | 3008 |
| 3009 bool WebContentsImpl::ShouldTransferNavigation() { |
| 3010 if (!delegate_) |
| 3011 return true; |
| 3012 return delegate_->ShouldTransferNavigation(); |
| 3013 } |
| 3014 |
| 3009 bool WebContentsImpl::ShouldPreserveAbortedURLs() { | 3015 bool WebContentsImpl::ShouldPreserveAbortedURLs() { |
| 3010 if (!delegate_) | 3016 if (!delegate_) |
| 3011 return false; | 3017 return false; |
| 3012 return delegate_->ShouldPreserveAbortedURLs(this); | 3018 return delegate_->ShouldPreserveAbortedURLs(this); |
| 3013 } | 3019 } |
| 3014 | 3020 |
| 3015 void WebContentsImpl::DidCommitProvisionalLoad( | 3021 void WebContentsImpl::DidCommitProvisionalLoad( |
| 3016 RenderFrameHostImpl* render_frame_host, | 3022 RenderFrameHostImpl* render_frame_host, |
| 3017 const GURL& url, | 3023 const GURL& url, |
| 3018 ui::PageTransition transition_type) { | 3024 ui::PageTransition transition_type) { |
| (...skipping 1688 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4707 const WebContentsObserver::MediaPlayerId& id) { | 4713 const WebContentsObserver::MediaPlayerId& id) { |
| 4708 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); | 4714 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStartedPlaying(id)); |
| 4709 } | 4715 } |
| 4710 | 4716 |
| 4711 void WebContentsImpl::MediaStoppedPlaying( | 4717 void WebContentsImpl::MediaStoppedPlaying( |
| 4712 const WebContentsObserver::MediaPlayerId& id) { | 4718 const WebContentsObserver::MediaPlayerId& id) { |
| 4713 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); | 4719 FOR_EACH_OBSERVER(WebContentsObserver, observers_, MediaStoppedPlaying(id)); |
| 4714 } | 4720 } |
| 4715 | 4721 |
| 4716 } // namespace content | 4722 } // namespace content |
| OLD | NEW |