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

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

Issue 1889973002: Refactoring starting a resource load (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix a browser_test Created 4 years, 6 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/Resource.h
diff --git a/third_party/WebKit/Source/core/fetch/Resource.h b/third_party/WebKit/Source/core/fetch/Resource.h
index 01de173f833509acea9b129a580f6ae3417e60f4..c524d3be6b5550d4f000f2465bdb1c3009004af7 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -46,7 +46,6 @@ struct FetchInitiatorInfo;
class CachedMetadata;
class FetchRequest;
class ResourceClient;
-class ResourceFetcher;
class ResourceTimingInfo;
class ResourceLoader;
class SecurityOrigin;
@@ -92,8 +91,6 @@ public:
DECLARE_VIRTUAL_TRACE();
- void load(ResourceFetcher*);
-
virtual void setEncoding(const String&) { }
virtual String encoding() const { return String(); }
virtual void appendData(const char*, size_t);
@@ -119,6 +116,8 @@ public:
virtual void setRevalidatingRequest(const ResourceRequest&);
+ void setFetcherSecurityOrigin(SecurityOrigin* origin) { m_fetcherSecurityOrigin = origin; }
+
// This url can have a fragment, but it can match resources that differ by the fragment only.
const KURL& url() const { return m_resourceRequest.url();}
Type getType() const { return static_cast<Type>(m_type); }
@@ -155,6 +154,7 @@ public:
bool isLoading() const { return m_status == Pending; }
bool stillNeedsLoad() const { return m_status < Pending; }
+ void setLoader(ResourceLoader*);
ResourceLoader* loader() const { return m_loader.get(); }
virtual bool isImage() const { return false; }
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResourceTest.cpp ('k') | third_party/WebKit/Source/core/fetch/Resource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698