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

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

Issue 1926193002: Clean up ResourceLoader finish more, remove ConnectionState enum (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@finish_smaller
Patch Set: rebase Created 4 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 side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.h
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
index 5861be4acf3cd8dc78218fae710221fd45f59424..79e91e4a4f840ab3e861698703aade45ae21fd68 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.h
@@ -103,19 +103,19 @@ public:
void stopFetching();
bool isFetching() const;
- void didLoadResource(Resource*);
bool willFollowRedirect(Resource*, ResourceRequest&, const ResourceResponse&);
- void didFinishLoading(Resource*, double finishTime, int64_t encodedDataLength);
- void didFailLoading(const Resource*, const ResourceError&);
+ enum DidFinishLoadingReason {
+ DidFinishLoading,
+ DidFinishFirstPartInMultipart
+ };
+ void didFinishLoading(Resource*, double finishTime, int64_t encodedDataLength, DidFinishLoadingReason);
+ void didFailLoading(Resource*, const ResourceError&);
void didReceiveResponse(Resource*, const ResourceResponse&);
void didReceiveData(const Resource*, const char* data, int dataLength, int encodedDataLength);
void didDownloadData(const Resource*, int dataLength, int encodedDataLength);
void willStartLoadingResource(Resource*, ResourceLoader*, ResourceRequest&);
bool defersLoading() const;
- void moveResourceLoaderToNonBlocking(ResourceLoader*);
- void removeResourceLoader(ResourceLoader*);
-
enum AccessControlLoggingDecision {
ShouldLogAccessControlErrors,
ShouldNotLogAccessControlErrors
@@ -164,6 +164,8 @@ private:
RevalidationPolicy determineRevalidationPolicy(Resource::Type, const FetchRequest&, Resource* existingResource, bool isStaticData) const;
void moveCachedNonBlockingResourceToBlocking(Resource*, const FetchRequest&);
+ void moveResourceLoaderToNonBlocking(ResourceLoader*);
+ void removeResourceLoader(ResourceLoader*);
void initializeResourceRequest(ResourceRequest&, Resource::Type, FetchRequest::DeferOption);
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ImageResource.cpp ('k') | third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698