Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(183)

Side by Side Diff: content/browser/loader/resource_dispatcher_host_impl.cc

Issue 2030473002: ABANDONED CL: Using ResourceRequestBody as the type of browser_initiated_post_data. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make-resource-request-body-public
Patch Set: Rebasing... Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading 5 // See http://dev.chromium.org/developers/design-documents/multi-process-resourc e-loading
6 6
7 #include "content/browser/loader/resource_dispatcher_host_impl.h" 7 #include "content/browser/loader/resource_dispatcher_host_impl.h"
8 8
9 #include <stddef.h> 9 #include <stddef.h>
10 10
(...skipping 1837 matching lines...) Expand 10 before | Expand all | Expand 10 after
1848 loader->CancelRequest(true); 1848 loader->CancelRequest(true);
1849 } 1849 }
1850 1850
1851 ResourceRequestInfoImpl* ResourceDispatcherHostImpl::CreateRequestInfo( 1851 ResourceRequestInfoImpl* ResourceDispatcherHostImpl::CreateRequestInfo(
1852 int child_id, 1852 int child_id,
1853 int render_view_route_id, 1853 int render_view_route_id,
1854 int render_frame_route_id, 1854 int render_frame_route_id,
1855 bool download, 1855 bool download,
1856 ResourceContext* context) { 1856 ResourceContext* context) {
1857 return new ResourceRequestInfoImpl( 1857 return new ResourceRequestInfoImpl(
1858 PROCESS_TYPE_RENDERER, 1858 PROCESS_TYPE_RENDERER, child_id, render_view_route_id,
1859 child_id,
1860 render_view_route_id,
1861 -1, // frame_tree_node_id 1859 -1, // frame_tree_node_id
1862 0, 1860 0, request_id_, render_frame_route_id,
1863 request_id_, 1861 false, // is_main_frame
1864 render_frame_route_id, 1862 false, // parent_is_main_frame
1865 false, // is_main_frame 1863 RESOURCE_TYPE_SUB_RESOURCE, ui::PAGE_TRANSITION_LINK,
1866 false, // parent_is_main_frame
1867 RESOURCE_TYPE_SUB_RESOURCE,
1868 ui::PAGE_TRANSITION_LINK,
1869 false, // should_replace_current_entry 1864 false, // should_replace_current_entry
1870 download, // is_download 1865 download, // is_download
1871 false, // is_stream 1866 false, // is_stream
1872 download, // allow_download 1867 download, // allow_download
1873 false, // has_user_gesture 1868 false, // has_user_gesture
1874 false, // enable_load_timing 1869 false, // enable_load_timing
1875 false, // enable_upload_progress 1870 false, // enable_upload_progress
1876 false, // do_not_prompt_for_login 1871 false, // do_not_prompt_for_login
1877 blink::WebReferrerPolicyDefault, 1872 blink::WebReferrerPolicyDefault, blink::WebPageVisibilityStateVisible,
1878 blink::WebPageVisibilityStateVisible,
1879 context, 1873 context,
1880 base::WeakPtr<ResourceMessageFilter>(), // filter 1874 base::WeakPtr<ResourceMessageFilter>(), // filter
1881 false, // report_raw_headers 1875 false, // report_raw_headers
1882 true, // is_async 1876 true, // is_async
1883 false, // is_using_lofi 1877 false, // is_using_lofi
1884 std::string(), // original_headers 1878 std::string(), // original_headers
1885 nullptr); // body 1879 nullptr); // body
1886 } 1880 }
1887 1881
1888 void ResourceDispatcherHostImpl::OnRenderFrameDeleted( 1882 void ResourceDispatcherHostImpl::OnRenderFrameDeleted(
(...skipping 805 matching lines...) Expand 10 before | Expand all | Expand 10 after
2694 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id); 2688 ssl.cert_id = GetCertStore()->StoreCert(ssl_info.cert.get(), child_id);
2695 response->head.security_info = SerializeSecurityInfo(ssl); 2689 response->head.security_info = SerializeSecurityInfo(ssl);
2696 } 2690 }
2697 2691
2698 CertStore* ResourceDispatcherHostImpl::GetCertStore() { 2692 CertStore* ResourceDispatcherHostImpl::GetCertStore() {
2699 return cert_store_for_testing_ ? cert_store_for_testing_ 2693 return cert_store_for_testing_ ? cert_store_for_testing_
2700 : CertStore::GetInstance(); 2694 : CertStore::GetInstance();
2701 } 2695 }
2702 2696
2703 } // namespace content 2697 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/frame_host/navigation_entry_impl_unittest.cc ('k') | content/browser/net/network_errors_listing_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698