| 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 3261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3272 observers_, | 3272 observers_, |
| 3273 DidFailLoad(render_frame_host, url, error_code, error_description, | 3273 DidFailLoad(render_frame_host, url, error_code, error_description, |
| 3274 was_ignored_by_handler)); | 3274 was_ignored_by_handler)); |
| 3275 } | 3275 } |
| 3276 | 3276 |
| 3277 void WebContentsImpl::NotifyChangedNavigationState( | 3277 void WebContentsImpl::NotifyChangedNavigationState( |
| 3278 InvalidateTypes changed_flags) { | 3278 InvalidateTypes changed_flags) { |
| 3279 NotifyNavigationStateChanged(changed_flags); | 3279 NotifyNavigationStateChanged(changed_flags); |
| 3280 } | 3280 } |
| 3281 | 3281 |
| 3282 void WebContentsImpl::DidStartNavigationToPendingEntry( | 3282 void WebContentsImpl::DidStartNavigationToPendingEntry(const GURL& url, |
| 3283 const GURL& url, | 3283 ReloadType reload_type) { |
| 3284 NavigationController::ReloadType reload_type) { | |
| 3285 // Notify observers about navigation. | 3284 // Notify observers about navigation. |
| 3286 FOR_EACH_OBSERVER( | 3285 FOR_EACH_OBSERVER( |
| 3287 WebContentsObserver, | 3286 WebContentsObserver, |
| 3288 observers_, | 3287 observers_, |
| 3289 DidStartNavigationToPendingEntry(url, reload_type)); | 3288 DidStartNavigationToPendingEntry(url, reload_type)); |
| 3290 } | 3289 } |
| 3291 | 3290 |
| 3292 void WebContentsImpl::RequestOpenURL(RenderFrameHostImpl* render_frame_host, | 3291 void WebContentsImpl::RequestOpenURL(RenderFrameHostImpl* render_frame_host, |
| 3293 const OpenURLParams& params) { | 3292 const OpenURLParams& params) { |
| 3294 // OpenURL can blow away the source RFH. Use the process/frame routing ID as a | 3293 // OpenURL can blow away the source RFH. Use the process/frame routing ID as a |
| (...skipping 1910 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5205 for (RenderViewHost* render_view_host : render_view_host_set) | 5204 for (RenderViewHost* render_view_host : render_view_host_set) |
| 5206 render_view_host->OnWebkitPreferencesChanged(); | 5205 render_view_host->OnWebkitPreferencesChanged(); |
| 5207 } | 5206 } |
| 5208 | 5207 |
| 5209 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( | 5208 void WebContentsImpl::SetJavaScriptDialogManagerForTesting( |
| 5210 JavaScriptDialogManager* dialog_manager) { | 5209 JavaScriptDialogManager* dialog_manager) { |
| 5211 dialog_manager_ = dialog_manager; | 5210 dialog_manager_ = dialog_manager; |
| 5212 } | 5211 } |
| 5213 | 5212 |
| 5214 } // namespace content | 5213 } // namespace content |
| OLD | NEW |