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

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

Issue 483773002: PlzNavigate: implement CommitNavigation on the browser side (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase + fix compilation error Created 6 years, 2 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
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 #include "content/browser/loader/upload_data_stream_builder.h" 47 #include "content/browser/loader/upload_data_stream_builder.h"
48 #include "content/browser/renderer_host/render_view_host_delegate.h" 48 #include "content/browser/renderer_host/render_view_host_delegate.h"
49 #include "content/browser/renderer_host/render_view_host_impl.h" 49 #include "content/browser/renderer_host/render_view_host_impl.h"
50 #include "content/browser/resource_context_impl.h" 50 #include "content/browser/resource_context_impl.h"
51 #include "content/browser/service_worker/service_worker_request_handler.h" 51 #include "content/browser/service_worker/service_worker_request_handler.h"
52 #include "content/browser/streams/stream.h" 52 #include "content/browser/streams/stream.h"
53 #include "content/browser/streams/stream_context.h" 53 #include "content/browser/streams/stream_context.h"
54 #include "content/browser/streams/stream_registry.h" 54 #include "content/browser/streams/stream_registry.h"
55 #include "content/browser/web_contents/web_contents_impl.h" 55 #include "content/browser/web_contents/web_contents_impl.h"
56 #include "content/common/appcache_interfaces.h" 56 #include "content/common/appcache_interfaces.h"
57 #include "content/common/navigation_params.h"
57 #include "content/common/resource_messages.h" 58 #include "content/common/resource_messages.h"
58 #include "content/common/ssl_status_serialization.h" 59 #include "content/common/ssl_status_serialization.h"
59 #include "content/common/view_messages.h" 60 #include "content/common/view_messages.h"
60 #include "content/public/browser/browser_thread.h" 61 #include "content/public/browser/browser_thread.h"
61 #include "content/public/browser/content_browser_client.h" 62 #include "content/public/browser/content_browser_client.h"
62 #include "content/public/browser/download_manager.h" 63 #include "content/public/browser/download_manager.h"
63 #include "content/public/browser/download_url_parameters.h" 64 #include "content/public/browser/download_url_parameters.h"
64 #include "content/public/browser/global_request_id.h" 65 #include "content/public/browser/global_request_id.h"
65 #include "content/public/browser/resource_dispatcher_host_delegate.h" 66 #include "content/public/browser/resource_dispatcher_host_delegate.h"
66 #include "content/public/browser/resource_request_details.h" 67 #include "content/public/browser/resource_request_details.h"
(...skipping 1681 matching lines...) Expand 10 before | Expand all | Expand 10 after
1748 } 1749 }
1749 1750
1750 void ResourceDispatcherHostImpl::FinishedWithResourcesForRequest( 1751 void ResourceDispatcherHostImpl::FinishedWithResourcesForRequest(
1751 const net::URLRequest* request_) { 1752 const net::URLRequest* request_) {
1752 const ResourceRequestInfoImpl* info = 1753 const ResourceRequestInfoImpl* info =
1753 ResourceRequestInfoImpl::ForRequest(request_); 1754 ResourceRequestInfoImpl::ForRequest(request_);
1754 IncrementOutstandingRequestsCount(-1, *info); 1755 IncrementOutstandingRequestsCount(-1, *info);
1755 } 1756 }
1756 1757
1757 void ResourceDispatcherHostImpl::StartNavigationRequest( 1758 void ResourceDispatcherHostImpl::StartNavigationRequest(
1759 const CommonNavigationParams& params,
1758 const NavigationRequestInfo& info, 1760 const NavigationRequestInfo& info,
1759 scoped_refptr<ResourceRequestBody> request_body, 1761 scoped_refptr<ResourceRequestBody> request_body,
1760 int64 navigation_request_id, 1762 int64 navigation_request_id,
1761 int64 frame_node_id) { 1763 int64 frame_node_id) {
1762 NOTIMPLEMENTED(); 1764 NOTIMPLEMENTED();
1763 } 1765 }
1764 1766
1765 void ResourceDispatcherHostImpl::CancelNavigationRequest( 1767 void ResourceDispatcherHostImpl::CancelNavigationRequest(
1766 int64 navigation_request_id, 1768 int64 navigation_request_id,
1767 int64 frame_node_id) { 1769 int64 frame_node_id) {
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
2142 2144
2143 // Add a flag to selectively bypass the data reduction proxy if the resource 2145 // Add a flag to selectively bypass the data reduction proxy if the resource
2144 // type is not an image. 2146 // type is not an image.
2145 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) 2147 if (request_data.resource_type != RESOURCE_TYPE_IMAGE)
2146 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; 2148 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY;
2147 2149
2148 return load_flags; 2150 return load_flags;
2149 } 2151 }
2150 2152
2151 } // namespace content 2153 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/loader/resource_dispatcher_host_impl.h ('k') | content/common/frame_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698