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

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

Issue 10836305: Ensure that isolated apps use the right cookies for media requests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix nits Created 8 years, 4 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 // Represents the browser side of the browser <--> renderer communication 5 // Represents the browser side of the browser <--> renderer communication
6 // channel. There will be one RenderProcessHost per renderer process. 6 // channel. There will be one RenderProcessHost per renderer process.
7 7
8 #include "content/browser/renderer_host/render_process_host_impl.h" 8 #include "content/browser/renderer_host/render_process_host_impl.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 169 matching lines...) Expand 10 before | Expand all | Expand 10 after
180 180
181 // Helper class that we pass to ResourceMessageFilter so that it can find the 181 // Helper class that we pass to ResourceMessageFilter so that it can find the
182 // right net::URLRequestContext for a request. 182 // right net::URLRequestContext for a request.
183 class RendererURLRequestContextSelector 183 class RendererURLRequestContextSelector
184 : public ResourceMessageFilter::URLRequestContextSelector { 184 : public ResourceMessageFilter::URLRequestContextSelector {
185 public: 185 public:
186 RendererURLRequestContextSelector(BrowserContext* browser_context, 186 RendererURLRequestContextSelector(BrowserContext* browser_context,
187 int render_child_id) 187 int render_child_id)
188 : request_context_(browser_context->GetRequestContextForRenderProcess( 188 : request_context_(browser_context->GetRequestContextForRenderProcess(
189 render_child_id)), 189 render_child_id)),
190 media_request_context_(browser_context->GetRequestContextForMedia()) { 190 media_request_context_(browser_context->GetRequestContextForMedia(
191 render_child_id)) {
191 } 192 }
192 193
193 virtual net::URLRequestContext* GetRequestContext( 194 virtual net::URLRequestContext* GetRequestContext(
194 ResourceType::Type resource_type) { 195 ResourceType::Type resource_type) {
195 net::URLRequestContextGetter* request_context = request_context_; 196 net::URLRequestContextGetter* request_context = request_context_;
196 // If the request has resource type of ResourceType::MEDIA, we use a request 197 // If the request has resource type of ResourceType::MEDIA, we use a request
197 // context specific to media for handling it because these resources have 198 // context specific to media for handling it because these resources have
198 // specific needs for caching. 199 // specific needs for caching.
199 if (resource_type == ResourceType::MEDIA) 200 if (resource_type == ResourceType::MEDIA)
200 request_context = media_request_context_; 201 request_context = media_request_context_;
(...skipping 1306 matching lines...) Expand 10 before | Expand all | Expand 10 after
1507 int32 route_id, 1508 int32 route_id,
1508 int32 gpu_process_host_id) { 1509 int32 gpu_process_host_id) {
1509 TRACE_EVENT0("renderer_host", 1510 TRACE_EVENT0("renderer_host",
1510 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost"); 1511 "RenderWidgetHostImpl::OnCompositorSurfaceBuffersSwappedNoHost");
1511 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id, 1512 RenderWidgetHostImpl::AcknowledgeBufferPresent(route_id,
1512 gpu_process_host_id, 1513 gpu_process_host_id,
1513 0); 1514 0);
1514 } 1515 }
1515 1516
1516 } // namespace content 1517 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698