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

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

Issue 623663002: [ServiceWorker] pipe RequestContext and FrameType to ServiceWorker. [2/2 chromium] (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: request_info.cc 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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_.fetch_request_mode = request_info.fetch_request_mode;
131 request_.fetch_credentials_mode = request_info.fetch_credentials_mode; 131 request_.fetch_credentials_mode = request_info.fetch_credentials_mode;
132 request_.fetch_request_context_type = request_info.fetch_request_context_type;
133 request_.fetch_frame_type = request_info.fetch_frame_type;
132 request_.enable_load_timing = request_info.enable_load_timing; 134 request_.enable_load_timing = request_info.enable_load_timing;
133 135
134 const RequestExtraData kEmptyData; 136 const RequestExtraData kEmptyData;
135 const RequestExtraData* extra_data; 137 const RequestExtraData* extra_data;
136 if (request_info.extra_data) 138 if (request_info.extra_data)
137 extra_data = static_cast<RequestExtraData*>(request_info.extra_data); 139 extra_data = static_cast<RequestExtraData*>(request_info.extra_data);
138 else 140 else
139 extra_data = &kEmptyData; 141 extra_data = &kEmptyData;
140 request_.visiblity_state = extra_data->visibility_state(); 142 request_.visiblity_state = extra_data->visibility_state();
141 request_.render_frame_id = extra_data->render_frame_id(); 143 request_.render_frame_id = extra_data->render_frame_id();
(...skipping 741 matching lines...) Expand 10 before | Expand all | Expand 10 after
883 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) { 885 void ResourceDispatcher::ReleaseResourcesInMessageQueue(MessageQueue* queue) {
884 while (!queue->empty()) { 886 while (!queue->empty()) {
885 IPC::Message* message = queue->front(); 887 IPC::Message* message = queue->front();
886 ReleaseResourcesInDataMessage(*message); 888 ReleaseResourcesInDataMessage(*message);
887 queue->pop_front(); 889 queue->pop_front();
888 delete message; 890 delete message;
889 } 891 }
890 } 892 }
891 893
892 } // namespace content 894 } // 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