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

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

Issue 6966016: Handle <link rel=prerender> in chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: tone down the over-aggressive search and replace... Created 9 years, 7 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 | « webkit/glue/resource_type.h ('k') | 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 // An implementation of WebURLLoader in terms of ResourceLoaderBridge. 5 // An implementation of WebURLLoader in terms of ResourceLoaderBridge.
6 6
7 #include "webkit/glue/weburlloader_impl.h" 7 #include "webkit/glue/weburlloader_impl.h"
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 case WebURLRequest::TargetIsObject: 128 case WebURLRequest::TargetIsObject:
129 return ResourceType::OBJECT; 129 return ResourceType::OBJECT;
130 case WebURLRequest::TargetIsMedia: 130 case WebURLRequest::TargetIsMedia:
131 return ResourceType::MEDIA; 131 return ResourceType::MEDIA;
132 case WebURLRequest::TargetIsWorker: 132 case WebURLRequest::TargetIsWorker:
133 return ResourceType::WORKER; 133 return ResourceType::WORKER;
134 case WebURLRequest::TargetIsSharedWorker: 134 case WebURLRequest::TargetIsSharedWorker:
135 return ResourceType::SHARED_WORKER; 135 return ResourceType::SHARED_WORKER;
136 case WebURLRequest::TargetIsPrefetch: 136 case WebURLRequest::TargetIsPrefetch:
137 return ResourceType::PREFETCH; 137 return ResourceType::PREFETCH;
138 case WebURLRequest::TargetIsPrerender:
139 return ResourceType::PRERENDER;
138 case WebURLRequest::TargetIsFavicon: 140 case WebURLRequest::TargetIsFavicon:
139 return ResourceType::FAVICON; 141 return ResourceType::FAVICON;
140 default: 142 default:
141 NOTREACHED(); 143 NOTREACHED();
142 return ResourceType::SUB_RESOURCE; 144 return ResourceType::SUB_RESOURCE;
143 } 145 }
144 } 146 }
145 147
146 // Extracts the information from a data: url. 148 // Extracts the information from a data: url.
147 bool GetInfoFromDataURL(const GURL& url, 149 bool GetInfoFromDataURL(const GURL& url,
(...skipping 607 matching lines...) Expand 10 before | Expand all | Expand 10 after
755 757
756 void WebURLLoaderImpl::cancel() { 758 void WebURLLoaderImpl::cancel() {
757 context_->Cancel(); 759 context_->Cancel();
758 } 760 }
759 761
760 void WebURLLoaderImpl::setDefersLoading(bool value) { 762 void WebURLLoaderImpl::setDefersLoading(bool value) {
761 context_->SetDefersLoading(value); 763 context_->SetDefersLoading(value);
762 } 764 }
763 765
764 } // namespace webkit_glue 766 } // namespace webkit_glue
OLDNEW
« no previous file with comments | « webkit/glue/resource_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698