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

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

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
Index: third_party/WebKit/Source/core/fetch/RawResource.h
diff --git a/third_party/WebKit/Source/core/fetch/RawResource.h b/third_party/WebKit/Source/core/fetch/RawResource.h
index bd34d00ef4daec90f6bc876ec3cff5ccf0d5b888..95401e137c4f951c0d800e32fd6e722190dbfc1e 100644
--- a/third_party/WebKit/Source/core/fetch/RawResource.h
+++ b/third_party/WebKit/Source/core/fetch/RawResource.h
@@ -40,7 +40,7 @@ class CORE_EXPORT RawResource final : public Resource {
public:
using ClientType = RawResourceClient;
- static Resource* fetchSynchronously(FetchRequest&, ResourceFetcher*);
+ static RawResource* fetchSynchronously(FetchRequest&, ResourceFetcher*);
static RawResource* fetch(FetchRequest&, ResourceFetcher*);
static RawResource* fetchMainResource(FetchRequest&,
ResourceFetcher*,
@@ -61,7 +61,10 @@ class CORE_EXPORT RawResource final : public Resource {
// of DocumentThreadableLoader.
void setDefersLoading(bool);
+ // Resource implementation
bool canReuse(const ResourceRequest&) const override;
+ bool willFollowRedirect(const ResourceRequest&,
+ const ResourceResponse&) override;
private:
class RawResourceFactory : public ResourceFactory {
@@ -77,15 +80,12 @@ class CORE_EXPORT RawResource final : public Resource {
RawResource(const ResourceRequest&, Type, const ResourceLoaderOptions&);
+ // Resource implementation
void didAddClient(ResourceClient*) override;
void appendData(const char*, size_t) override;
-
bool shouldIgnoreHTTPStatusCodeErrors() const override {
return !isLinkPreload();
}
-
- bool willFollowRedirect(const ResourceRequest&,
- const ResourceResponse&) override;
void willNotFollowRedirect() override;
void responseReceived(const ResourceResponse&,
std::unique_ptr<WebDataConsumerHandle>) override;

Powered by Google App Engine
This is Rietveld 408576698