| 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);
|
|
|
|
|