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

Side by Side Diff: content/child/resource_dispatcher.cc

Issue 588153002: [ServiceWorker] Plumbing the request mode from the renderer to the ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix compile 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/child/request_info.cc ('k') | content/child/web_url_loader_impl.cc » ('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/child/resource_dispatcher.h" 7 #include "content/child/resource_dispatcher.h"
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 request_.headers = request_info.headers; 120 request_.headers = request_info.headers;
121 request_.load_flags = request_info.load_flags; 121 request_.load_flags = request_info.load_flags;
122 request_.origin_pid = request_info.requestor_pid; 122 request_.origin_pid = request_info.requestor_pid;
123 request_.resource_type = request_info.request_type; 123 request_.resource_type = request_info.request_type;
124 request_.priority = request_info.priority; 124 request_.priority = request_info.priority;
125 request_.request_context = request_info.request_context; 125 request_.request_context = request_info.request_context;
126 request_.appcache_host_id = request_info.appcache_host_id; 126 request_.appcache_host_id = request_info.appcache_host_id;
127 request_.download_to_file = request_info.download_to_file; 127 request_.download_to_file = request_info.download_to_file;
128 request_.has_user_gesture = request_info.has_user_gesture; 128 request_.has_user_gesture = request_info.has_user_gesture;
129 request_.skip_service_worker = request_info.skip_service_worker; 129 request_.skip_service_worker = request_info.skip_service_worker;
130 request_.fetch_request_mode = request_info.fetch_request_mode;
130 request_.enable_load_timing = request_info.enable_load_timing; 131 request_.enable_load_timing = request_info.enable_load_timing;
131 132
132 const RequestExtraData kEmptyData; 133 const RequestExtraData kEmptyData;
133 const RequestExtraData* extra_data; 134 const RequestExtraData* extra_data;
134 if (request_info.extra_data) 135 if (request_info.extra_data)
135 extra_data = static_cast<RequestExtraData*>(request_info.extra_data); 136 extra_data = static_cast<RequestExtraData*>(request_info.extra_data);
136 else 137 else
137 extra_data = &kEmptyData; 138 extra_data = &kEmptyData;
138 request_.visiblity_state = extra_data->visibility_state(); 139 request_.visiblity_state = extra_data->visibility_state();
139 request_.render_frame_id = extra_data->render_frame_id(); 140 request_.render_frame_id = extra_data->render_frame_id();
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
881 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { 882 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) {
882 while (!queue->empty()) { 883 while (!queue->empty()) {
883 IPC::Message* message = queue->front(); 884 IPC::Message* message = queue->front();
884 ReleaseResourcesInDataMessage(*message); 885 ReleaseResourcesInDataMessage(*message);
885 queue->pop_front(); 886 queue->pop_front();
886 delete message; 887 delete message;
887 } 888 }
888 } 889 }
889 890
890 } // namespace content 891 } // namespace content
OLDNEW
« no previous file with comments | « content/child/request_info.cc ('k') | content/child/web_url_loader_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698