| 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 236 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 247 // Avoid downloading when in view-source mode. | 247 // Avoid downloading when in view-source mode. |
| 248 params->allow_download = !entry.IsViewSourceMode(); | 248 params->allow_download = !entry.IsViewSourceMode(); |
| 249 params->is_post = entry.GetHasPostData(); | 249 params->is_post = entry.GetHasPostData(); |
| 250 if (entry.GetBrowserInitiatedPostData()) { | 250 if (entry.GetBrowserInitiatedPostData()) { |
| 251 params->browser_initiated_post_data.assign( | 251 params->browser_initiated_post_data.assign( |
| 252 entry.GetBrowserInitiatedPostData()->front(), | 252 entry.GetBrowserInitiatedPostData()->front(), |
| 253 entry.GetBrowserInitiatedPostData()->front() + | 253 entry.GetBrowserInitiatedPostData()->front() + |
| 254 entry.GetBrowserInitiatedPostData()->size()); | 254 entry.GetBrowserInitiatedPostData()->size()); |
| 255 } | 255 } |
| 256 | 256 |
| 257 params->redirects = entry.redirect_chain(); | 257 params->redirects = entry.GetRedirectChain(); |
| 258 | 258 |
| 259 params->can_load_local_resources = entry.GetCanLoadLocalResources(); | 259 params->can_load_local_resources = entry.GetCanLoadLocalResources(); |
| 260 params->frame_to_navigate = entry.GetFrameToNavigate(); | 260 params->frame_to_navigate = entry.GetFrameToNavigate(); |
| 261 | 261 |
| 262 if (delegate) | 262 if (delegate) |
| 263 delegate->AddNavigationHeaders(params->url, ¶ms->extra_headers); | 263 delegate->AddNavigationHeaders(params->url, ¶ms->extra_headers); |
| 264 } | 264 } |
| 265 | 265 |
| 266 void NotifyCacheOnIO( | 266 void NotifyCacheOnIO( |
| 267 scoped_refptr<net::URLRequestContextGetter> request_context, | 267 scoped_refptr<net::URLRequestContextGetter> request_context, |
| (...skipping 3583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3851 } | 3851 } |
| 3852 | 3852 |
| 3853 void WebContentsImpl::OnFrameRemoved( | 3853 void WebContentsImpl::OnFrameRemoved( |
| 3854 RenderViewHostImpl* render_view_host, | 3854 RenderViewHostImpl* render_view_host, |
| 3855 int64 frame_id) { | 3855 int64 frame_id) { |
| 3856 FOR_EACH_OBSERVER(WebContentsObserver, observers_, | 3856 FOR_EACH_OBSERVER(WebContentsObserver, observers_, |
| 3857 FrameDetached(render_view_host, frame_id)); | 3857 FrameDetached(render_view_host, frame_id)); |
| 3858 } | 3858 } |
| 3859 | 3859 |
| 3860 } // namespace content | 3860 } // namespace content |
| OLD | NEW |