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 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 Resource*, | 94 Resource*, |
95 WebURLRequest::FrameType, | 95 WebURLRequest::FrameType, |
96 WebURLRequest::RequestContext); | 96 WebURLRequest::RequestContext); |
97 virtual void dispatchDidReceiveResponse(unsigned long identifier, | 97 virtual void dispatchDidReceiveResponse(unsigned long identifier, |
98 const ResourceResponse&, | 98 const ResourceResponse&, |
99 WebURLRequest::FrameType, | 99 WebURLRequest::FrameType, |
100 WebURLRequest::RequestContext, | 100 WebURLRequest::RequestContext, |
101 Resource*); | 101 Resource*); |
102 virtual void dispatchDidReceiveData(unsigned long identifier, | 102 virtual void dispatchDidReceiveData(unsigned long identifier, |
103 const char* data, | 103 const char* data, |
104 int dataLength, | 104 int dataLength); |
105 int encodedDataLength); | |
106 virtual void dispatchDidDownloadData(unsigned long identifier, | 105 virtual void dispatchDidDownloadData(unsigned long identifier, |
107 int dataLength, | 106 int dataLength, |
108 int encodedDataLength); | 107 int encodedDataLength); |
109 virtual void dispatchDidFinishLoading(unsigned long identifier, | 108 virtual void dispatchDidFinishLoading(unsigned long identifier, |
110 double finishTime, | 109 double finishTime, |
111 int64_t encodedDataLength); | 110 int64_t encodedDataLength); |
112 virtual void dispatchDidFail(unsigned long identifier, | 111 virtual void dispatchDidFail(unsigned long identifier, |
113 const ResourceError&, | 112 const ResourceError&, |
113 int64_t encodedDataLength, | |
dgozman
2016/11/22 17:54:12
I like this one!
| |
114 bool isInternalRequest); | 114 bool isInternalRequest); |
115 | 115 |
116 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } | 116 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } |
117 // Called when a resource load is first requested, which may not be when the | 117 // Called when a resource load is first requested, which may not be when the |
118 // load actually begins. | 118 // load actually begins. |
119 virtual void willStartLoadingResource(unsigned long identifier, | 119 virtual void willStartLoadingResource(unsigned long identifier, |
120 ResourceRequest&, | 120 ResourceRequest&, |
121 Resource::Type); | 121 Resource::Type); |
122 virtual void didLoadResource(Resource*); | 122 virtual void didLoadResource(Resource*); |
123 | 123 |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
166 | 166 |
167 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } | 167 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } |
168 | 168 |
169 protected: | 169 protected: |
170 FetchContext() {} | 170 FetchContext() {} |
171 }; | 171 }; |
172 | 172 |
173 } // namespace blink | 173 } // namespace blink |
174 | 174 |
175 #endif | 175 #endif |
OLD | NEW |