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

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

Issue 1757083002: [SVG 1/4] Move Resource::finish() for data URLs from requestResource() to Resource::load() Base URL: https://chromium.googlesource.com/chromium/src.git@SVG_new0b
Patch Set: auto-Rebase Created 4 years, 9 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 2dd436953333993acbc6cce65d52bdc257d6a37b..508edc4151562f79e56e40b812f675c0d956275d 100644
--- a/third_party/WebKit/Source/core/fetch/Resource.h
+++ b/third_party/WebKit/Source/core/fetch/Resource.h
@@ -26,6 +26,7 @@
#include "core/CoreExport.h"
#include "core/fetch/CachedMetadataHandler.h"
#include "core/fetch/ResourceLoaderOptions.h"
+#include "core/fetch/SubstituteData.h"
#include "platform/Timer.h"
#include "platform/network/ResourceError.h"
#include "platform/network/ResourceLoadPriority.h"
@@ -101,6 +102,8 @@ public:
DECLARE_VIRTUAL_TRACE();
virtual void load(ResourceFetcher*, const ResourceLoaderOptions&);
+ void loadLocallySubstituteData(const ResourceRequest&, const ResourceLoaderOptions&, const SubstituteData&);
+ bool loadLocallyDataURL(const ResourceRequest&, const ResourceLoaderOptions&);
virtual void setEncoding(const String&) { }
virtual String encoding() const { return String(); }
@@ -343,6 +346,8 @@ private:
bool unlock();
+ void loadLocallyStaticData(const ResourceRequest&, const ResourceLoaderOptions&, const WebString&, const WebString&, PassRefPtr<SharedBuffer>);
+
void setCachedMetadata(unsigned dataTypeID, const char*, size_t, CachedMetadataHandler::CacheType);
void clearCachedMetadata(CachedMetadataHandler::CacheType);
CachedMetadata* cachedMetadata(unsigned dataTypeID) const;
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.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