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

Side by Side Diff: webkit/glue/resource_type.cc

Issue 7491079: Add support for ResourceRequest::TargetIsXHR (part II) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 | no next file » | 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 #include "webkit/glue/resource_type.h" 5 #include "webkit/glue/resource_type.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 8
9 using WebKit::WebURLRequest; 9 using WebKit::WebURLRequest;
10 10
(...skipping 22 matching lines...) Expand all
33 case WebURLRequest::TargetIsWorker: 33 case WebURLRequest::TargetIsWorker:
34 return ResourceType::WORKER; 34 return ResourceType::WORKER;
35 case WebURLRequest::TargetIsSharedWorker: 35 case WebURLRequest::TargetIsSharedWorker:
36 return ResourceType::SHARED_WORKER; 36 return ResourceType::SHARED_WORKER;
37 case WebURLRequest::TargetIsPrefetch: 37 case WebURLRequest::TargetIsPrefetch:
38 return ResourceType::PREFETCH; 38 return ResourceType::PREFETCH;
39 case WebURLRequest::TargetIsPrerender: 39 case WebURLRequest::TargetIsPrerender:
40 return ResourceType::PRERENDER; 40 return ResourceType::PRERENDER;
41 case WebURLRequest::TargetIsFavicon: 41 case WebURLRequest::TargetIsFavicon:
42 return ResourceType::FAVICON; 42 return ResourceType::FAVICON;
43 // TODO(jochen): remove the #ifdef as soon as WebKit side has landed.
44 #if defined(WEBKIT_HAS_TARGET_IS_XHR)
45 case WebURLRequest::TargetIsXHR: 43 case WebURLRequest::TargetIsXHR:
46 return ResourceType::XHR; 44 return ResourceType::XHR;
47 #endif
48 default: 45 default:
49 NOTREACHED(); 46 NOTREACHED();
50 return ResourceType::SUB_RESOURCE; 47 return ResourceType::SUB_RESOURCE;
51 } 48 }
52 } 49 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698