OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Google Inc. All rights reserved. | 2 * Copyright (C) 2013 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions are | 5 * modification, are permitted provided that the following conditions are |
6 * met: | 6 * met: |
7 * | 7 * |
8 * * Redistributions of source code must retain the above copyright | 8 * * Redistributions of source code must retain the above copyright |
9 * notice, this list of conditions and the following disclaimer. | 9 * notice, this list of conditions and the following disclaimer. |
10 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 virtual bool isLiveContext() { return false; } | 68 virtual bool isLiveContext() { return false; } |
69 virtual void countClientHintsDPR() { } | 69 virtual void countClientHintsDPR() { } |
70 virtual void countClientHintsResourceWidth() { } | 70 virtual void countClientHintsResourceWidth() { } |
71 virtual void countClientHintsViewportWidth() { } | 71 virtual void countClientHintsViewportWidth() { } |
72 | 72 |
73 virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType
); | 73 virtual void addAdditionalRequestHeaders(ResourceRequest&, FetchResourceType
); |
74 virtual CachePolicy getCachePolicy() const; | 74 virtual CachePolicy getCachePolicy() const; |
75 virtual WebCachePolicy resourceRequestCachePolicy(const ResourceRequest&, Re
source::Type, FetchRequest::DeferOption) const; | 75 virtual WebCachePolicy resourceRequestCachePolicy(const ResourceRequest&, Re
source::Type, FetchRequest::DeferOption) const; |
76 | 76 |
77 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Res
ourceLoadPriority, int intraPriorityValue); | 77 virtual void dispatchDidChangeResourcePriority(unsigned long identifier, Res
ourceLoadPriority, int intraPriorityValue); |
78 virtual void dispatchWillSendRequest(unsigned long identifier, ResourceReque
st&, const ResourceResponse& redirectResponse, const FetchInitiatorInfo& = Fetch
InitiatorInfo()); | 78 virtual void prepareRequest(unsigned long identifier, ResourceRequest&, cons
t ResourceResponse&) { } |
| 79 virtual void dispatchWillSendRequest(unsigned long identifier, const Resourc
eRequest&, const ResourceResponse& redirectResponse, const FetchInitiatorInfo& =
FetchInitiatorInfo()); |
79 virtual void dispatchDidLoadResourceFromMemoryCache(unsigned long identifier
, Resource*, WebURLRequest::FrameType, WebURLRequest::RequestContext); | 80 virtual void dispatchDidLoadResourceFromMemoryCache(unsigned long identifier
, Resource*, WebURLRequest::FrameType, WebURLRequest::RequestContext); |
80 virtual void dispatchDidReceiveResponse(unsigned long identifier, const Reso
urceResponse&, WebURLRequest::FrameType, WebURLRequest::RequestContext, Resource
*); | 81 virtual void dispatchDidReceiveResponse(unsigned long identifier, const Reso
urceResponse&, WebURLRequest::FrameType, WebURLRequest::RequestContext, Resource
*); |
81 virtual void dispatchDidReceiveData(unsigned long identifier, const char* da
ta, int dataLength, int encodedDataLength); | 82 virtual void dispatchDidReceiveData(unsigned long identifier, const char* da
ta, int dataLength, int encodedDataLength); |
82 virtual void dispatchDidDownloadData(unsigned long identifier, int dataLengt
h, int encodedDataLength); | 83 virtual void dispatchDidDownloadData(unsigned long identifier, int dataLengt
h, int encodedDataLength); |
83 virtual void dispatchDidFinishLoading(unsigned long identifier, double finis
hTime, int64_t encodedDataLength); | 84 virtual void dispatchDidFinishLoading(unsigned long identifier, double finis
hTime, int64_t encodedDataLength); |
84 virtual void dispatchDidFail(unsigned long identifier, const ResourceError&,
bool isInternalRequest); | 85 virtual void dispatchDidFail(unsigned long identifier, const ResourceError&,
bool isInternalRequest); |
85 | 86 |
86 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } | 87 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } |
87 virtual void willStartLoadingResource(unsigned long identifier, ResourceRequ
est&, Resource::Type); | 88 virtual void willStartLoadingResource(unsigned long identifier, ResourceRequ
est&, Resource::Type); |
88 virtual void didLoadResource(Resource*); | 89 virtual void didLoadResource(Resource*); |
(...skipping 25 matching lines...) Expand all Loading... |
114 | 115 |
115 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } | 116 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } |
116 | 117 |
117 protected: | 118 protected: |
118 FetchContext() { } | 119 FetchContext() { } |
119 }; | 120 }; |
120 | 121 |
121 } // namespace blink | 122 } // namespace blink |
122 | 123 |
123 #endif | 124 #endif |
OLD | NEW |