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

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

Issue 7551019: Add support for WebURLRequest::TargetIsXHR (part I) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 9 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
« no previous file with comments | « no previous file | content/common/common_param_traits.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) 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 2032 matching lines...) Expand 10 before | Expand all | Expand 10 after
2043 2043
2044 // Sub resources, objects and media are lower priority than potentially 2044 // Sub resources, objects and media are lower priority than potentially
2045 // blocking stylesheets, scripts and fonts, but are higher priority than 2045 // blocking stylesheets, scripts and fonts, but are higher priority than
2046 // images because if they exist they are probably more central to the page 2046 // images because if they exist they are probably more central to the page
2047 // focus than images on the page. 2047 // focus than images on the page.
2048 case ResourceType::SUB_RESOURCE: 2048 case ResourceType::SUB_RESOURCE:
2049 case ResourceType::OBJECT: 2049 case ResourceType::OBJECT:
2050 case ResourceType::MEDIA: 2050 case ResourceType::MEDIA:
2051 case ResourceType::WORKER: 2051 case ResourceType::WORKER:
2052 case ResourceType::SHARED_WORKER: 2052 case ResourceType::SHARED_WORKER:
2053 case ResourceType::XHR:
2053 return net::LOW; 2054 return net::LOW;
2054 2055
2055 // Images are the "lowest" priority because they typically do not block 2056 // Images are the "lowest" priority because they typically do not block
2056 // downloads or rendering and most pages have some useful content without 2057 // downloads or rendering and most pages have some useful content without
2057 // them. 2058 // them.
2058 case ResourceType::IMAGE: 2059 case ResourceType::IMAGE:
2059 // Favicons aren't required for rendering the current page, but 2060 // Favicons aren't required for rendering the current page, but
2060 // are user visible. 2061 // are user visible.
2061 case ResourceType::FAVICON: 2062 case ResourceType::FAVICON:
2062 return net::LOWEST; 2063 return net::LOWEST;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
2105 return HTTP_AUTH_RESOURCE_BLOCKED_CROSS; 2106 return HTTP_AUTH_RESOURCE_BLOCKED_CROSS;
2106 } 2107 }
2107 2108
2108 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() { 2109 bool ResourceDispatcherHost::allow_cross_origin_auth_prompt() {
2109 return allow_cross_origin_auth_prompt_; 2110 return allow_cross_origin_auth_prompt_;
2110 } 2111 }
2111 2112
2112 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) { 2113 void ResourceDispatcherHost::set_allow_cross_origin_auth_prompt(bool value) {
2113 allow_cross_origin_auth_prompt_ = value; 2114 allow_cross_origin_auth_prompt_ = value;
2114 } 2115 }
OLDNEW
« no previous file with comments | « no previous file | content/common/common_param_traits.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698