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

Unified Diff: third_party/WebKit/Source/core/fetch/RawResource.cpp

Issue 2637063002: Use MockResource as much as possibler in MemoryCacheCorrectnessTest (Closed)
Patch Set: override related style nits Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/fetch/RawResource.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/fetch/RawResource.cpp
diff --git a/third_party/WebKit/Source/core/fetch/RawResource.cpp b/third_party/WebKit/Source/core/fetch/RawResource.cpp
index ecc96ed07e3619c41a7aa4449f386b3d0785badc..2a67b58094585a511e8836d3b26e38fd2d597c6d 100644
--- a/third_party/WebKit/Source/core/fetch/RawResource.cpp
+++ b/third_party/WebKit/Source/core/fetch/RawResource.cpp
@@ -35,10 +35,11 @@
namespace blink {
-Resource* RawResource::fetchSynchronously(FetchRequest& request,
- ResourceFetcher* fetcher) {
+RawResource* RawResource::fetchSynchronously(FetchRequest& request,
+ ResourceFetcher* fetcher) {
request.makeSynchronous();
- return fetcher->requestResource(request, RawResourceFactory(Resource::Raw));
+ return toRawResource(
+ fetcher->requestResource(request, RawResourceFactory(Resource::Raw)));
}
RawResource* RawResource::fetchImport(FetchRequest& request,
@@ -159,9 +160,9 @@ void RawResource::didAddClient(ResourceClient* c) {
bool RawResource::willFollowRedirect(const ResourceRequest& newRequest,
const ResourceResponse& redirectResponse) {
bool follow = Resource::willFollowRedirect(newRequest, redirectResponse);
- // The base class method takes a non const reference of a ResourceRequest
- // and returns bool just for allowing RawResource to reject redirect. It
- // must always return true.
+ // The base class method takes a const reference of a ResourceRequest and
+ // returns bool just for allowing RawResource to reject redirect. It must
+ // always return true.
DCHECK(follow);
DCHECK(!redirectResponse.isNull());
« no previous file with comments | « third_party/WebKit/Source/core/fetch/RawResource.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698