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

Side by Side Diff: content/browser/renderer_host/resource_request_info_impl.cc

Issue 10073002: TabContents -> WebContentsImpl, part 11. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: missed a few Created 8 years, 8 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 | Annotate | Revision Log
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 #include "content/browser/renderer_host/resource_request_info_impl.h" 5 #include "content/browser/renderer_host/resource_request_info_impl.h"
6 6
7 #include "content/browser/renderer_host/resource_handler.h" 7 #include "content/browser/renderer_host/resource_handler.h"
8 #include "content/browser/ssl/ssl_client_auth_handler.h" 8 #include "content/browser/ssl/ssl_client_auth_handler.h"
9 #include "content/browser/worker_host/worker_service_impl.h" 9 #include "content/browser/worker_host/worker_service_impl.h"
10 #include "content/common/net/url_request_user_data.h" 10 #include "content/common/net/url_request_user_data.h"
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 return referrer_policy_; 178 return referrer_policy_;
179 } 179 }
180 180
181 uint64 ResourceRequestInfoImpl::GetUploadSize() const { 181 uint64 ResourceRequestInfoImpl::GetUploadSize() const {
182 return upload_size_; 182 return upload_size_;
183 } 183 }
184 184
185 bool ResourceRequestInfoImpl::GetAssociatedRenderView( 185 bool ResourceRequestInfoImpl::GetAssociatedRenderView(
186 int* render_process_id, 186 int* render_process_id,
187 int* render_view_id) const { 187 int* render_view_id) const {
188 // If the request is from the worker process, find a tab that owns the worker. 188 // If the request is from the worker process, find a content that owns the
189 // worker.
189 if (process_type_ == PROCESS_TYPE_WORKER) { 190 if (process_type_ == PROCESS_TYPE_WORKER) {
190 // Need to display some related UI for this network request - pick an 191 // Need to display some related UI for this network request - pick an
191 // arbitrary parent to do so. 192 // arbitrary parent to do so.
192 if (!WorkerServiceImpl::GetInstance()->GetRendererForWorker( 193 if (!WorkerServiceImpl::GetInstance()->GetRendererForWorker(
193 child_id_, render_process_id, render_view_id)) { 194 child_id_, render_process_id, render_view_id)) {
194 *render_process_id = -1; 195 *render_process_id = -1;
195 *render_view_id = -1; 196 *render_view_id = -1;
196 return false; 197 return false;
197 } 198 }
198 } else { 199 } else {
(...skipping 28 matching lines...) Expand all
227 SSLClientAuthHandler* s) { 228 SSLClientAuthHandler* s) {
228 ssl_client_auth_handler_ = s; 229 ssl_client_auth_handler_ = s;
229 } 230 }
230 231
231 void ResourceRequestInfoImpl::set_requested_blob_data( 232 void ResourceRequestInfoImpl::set_requested_blob_data(
232 webkit_blob::BlobData* data) { 233 webkit_blob::BlobData* data) {
233 requested_blob_data_ = data; 234 requested_blob_data_ = data;
234 } 235 }
235 236
236 } // namespace content 237 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/resource_dispatcher_host_impl.cc ('k') | content/browser/renderer_host/test_render_view_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698