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

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: NavigationRequest has ownership of NavigationParams Created 6 years, 3 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 <algorithm> 9 #include <algorithm>
10 #include <set> 10 #include <set>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 #include "content/browser/loader/upload_data_stream_builder.h" 46 #include "content/browser/loader/upload_data_stream_builder.h"
47 #include "content/browser/renderer_host/render_view_host_delegate.h" 47 #include "content/browser/renderer_host/render_view_host_delegate.h"
48 #include "content/browser/renderer_host/render_view_host_impl.h" 48 #include "content/browser/renderer_host/render_view_host_impl.h"
49 #include "content/browser/resource_context_impl.h" 49 #include "content/browser/resource_context_impl.h"
50 #include "content/browser/service_worker/service_worker_request_handler.h" 50 #include "content/browser/service_worker/service_worker_request_handler.h"
51 #include "content/browser/streams/stream.h" 51 #include "content/browser/streams/stream.h"
52 #include "content/browser/streams/stream_context.h" 52 #include "content/browser/streams/stream_context.h"
53 #include "content/browser/streams/stream_registry.h" 53 #include "content/browser/streams/stream_registry.h"
54 #include "content/browser/web_contents/web_contents_impl.h" 54 #include "content/browser/web_contents/web_contents_impl.h"
55 #include "content/common/appcache_interfaces.h" 55 #include "content/common/appcache_interfaces.h"
56 #include "content/common/navigation_params.h"
56 #include "content/common/resource_messages.h" 57 #include "content/common/resource_messages.h"
57 #include "content/common/ssl_status_serialization.h" 58 #include "content/common/ssl_status_serialization.h"
58 #include "content/common/view_messages.h" 59 #include "content/common/view_messages.h"
59 #include "content/public/browser/browser_thread.h" 60 #include "content/public/browser/browser_thread.h"
60 #include "content/public/browser/content_browser_client.h" 61 #include "content/public/browser/content_browser_client.h"
61 #include "content/public/browser/download_manager.h" 62 #include "content/public/browser/download_manager.h"
62 #include "content/public/browser/download_url_parameters.h" 63 #include "content/public/browser/download_url_parameters.h"
63 #include "content/public/browser/global_request_id.h" 64 #include "content/public/browser/global_request_id.h"
64 #include "content/public/browser/resource_dispatcher_host_delegate.h" 65 #include "content/public/browser/resource_dispatcher_host_delegate.h"
65 #include "content/public/browser/resource_request_details.h" 66 #include "content/public/browser/resource_request_details.h"
(...skipping 1589 matching lines...) Expand 10 before | Expand all | Expand 10 after
1655 } 1656 }
1656 1657
1657 void ResourceDispatcherHostImpl::FinishedWithResourcesForRequest( 1658 void ResourceDispatcherHostImpl::FinishedWithResourcesForRequest(
1658 const net::URLRequest* request_) { 1659 const net::URLRequest* request_) {
1659 const ResourceRequestInfoImpl* info = 1660 const ResourceRequestInfoImpl* info =
1660 ResourceRequestInfoImpl::ForRequest(request_); 1661 ResourceRequestInfoImpl::ForRequest(request_);
1661 IncrementOutstandingRequestsCount(-1, *info); 1662 IncrementOutstandingRequestsCount(-1, *info);
1662 } 1663 }
1663 1664
1664 void ResourceDispatcherHostImpl::StartNavigationRequest( 1665 void ResourceDispatcherHostImpl::StartNavigationRequest(
1666 const CoreNavigationParams& params,
1665 const NavigationRequestInfo& info, 1667 const NavigationRequestInfo& info,
1666 scoped_refptr<ResourceRequestBody> request_body, 1668 scoped_refptr<ResourceRequestBody> request_body,
1667 int64 navigation_request_id, 1669 int64 navigation_request_id,
1668 int64 frame_node_id) { 1670 int64 frame_node_id) {
1669 NOTIMPLEMENTED(); 1671 NOTIMPLEMENTED();
1670 } 1672 }
1671 1673
1672 void ResourceDispatcherHostImpl::CancelNavigationRequest( 1674 void ResourceDispatcherHostImpl::CancelNavigationRequest(
1673 int64 navigation_request_id, 1675 int64 navigation_request_id,
1674 int64 frame_node_id) { 1676 int64 frame_node_id) {
(...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after
2049 2051
2050 // Add a flag to selectively bypass the data reduction proxy if the resource 2052 // Add a flag to selectively bypass the data reduction proxy if the resource
2051 // type is not an image. 2053 // type is not an image.
2052 if (request_data.resource_type != RESOURCE_TYPE_IMAGE) 2054 if (request_data.resource_type != RESOURCE_TYPE_IMAGE)
2053 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY; 2055 load_flags |= net::LOAD_BYPASS_DATA_REDUCTION_PROXY;
2054 2056
2055 return load_flags; 2057 return load_flags;
2056 } 2058 }
2057 2059
2058 } // namespace content 2060 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698