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

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

Issue 6825038: Create a content::ResourceContext. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix test. Created 9 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/renderer_host/resource_dispatcher_host.h" 7 #include "content/browser/renderer_host/resource_dispatcher_host.h"
8 8
9 #include <set> 9 #include <set>
10 #include <vector> 10 #include <vector>
(...skipping 1571 matching lines...) Expand 10 before | Expand all | Expand 10 after
1582 static int GetCertID(net::URLRequest* request, int child_id) { 1582 static int GetCertID(net::URLRequest* request, int child_id) {
1583 if (request->ssl_info().cert) { 1583 if (request->ssl_info().cert) {
1584 return CertStore::GetInstance()->StoreCert(request->ssl_info().cert, 1584 return CertStore::GetInstance()->StoreCert(request->ssl_info().cert,
1585 child_id); 1585 child_id);
1586 } 1586 }
1587 return 0; 1587 return 0;
1588 } 1588 }
1589 1589
1590 void ResourceDispatcherHost::NotifyResponseStarted(net::URLRequest* request, 1590 void ResourceDispatcherHost::NotifyResponseStarted(net::URLRequest* request,
1591 int child_id) { 1591 int child_id) {
1592 DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
1592 // Notify the observers on the IO thread. 1593 // Notify the observers on the IO thread.
1593 FOR_EACH_OBSERVER(Observer, observer_list_, OnRequestStarted(this, request)); 1594 FOR_EACH_OBSERVER(Observer, observer_list_, OnRequestStarted(this, request));
1594 1595
1595 int render_process_id, render_view_id; 1596 int render_process_id, render_view_id;
1596 if (!RenderViewForRequest(request, &render_process_id, &render_view_id)) 1597 if (!RenderViewForRequest(request, &render_process_id, &render_view_id))
1597 return; 1598 return;
1598 1599
1599 // Notify the observers on the UI thread. 1600 // Notify the observers on the UI thread.
1600 ResourceRequestDetails* detail = new ResourceRequestDetails( 1601 ResourceRequestDetails* detail = new ResourceRequestDetails(
1601 request, GetCertID(request, child_id)); 1602 request, GetCertID(request, child_id));
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
1953 return is_prefetch_enabled_; 1954 return is_prefetch_enabled_;
1954 } 1955 }
1955 1956
1956 // static 1957 // static
1957 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) { 1958 void ResourceDispatcherHost::set_is_prefetch_enabled(bool value) {
1958 is_prefetch_enabled_ = value; 1959 is_prefetch_enabled_ = value;
1959 } 1960 }
1960 1961
1961 // static 1962 // static
1962 bool ResourceDispatcherHost::is_prefetch_enabled_ = false; 1963 bool ResourceDispatcherHost::is_prefetch_enabled_ = false;
OLDNEW
« no previous file with comments | « content/browser/ppapi_broker_process_host.cc ('k') | content/browser/renderer_host/resource_dispatcher_host_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698