| 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); | 105 virtual void dispatchDidReceiveEncodedData(unsigned long identifier, |
| 106 int encodedDataLength); |
| 106 virtual void dispatchDidDownloadData(unsigned long identifier, | 107 virtual void dispatchDidDownloadData(unsigned long identifier, |
| 107 int dataLength, | 108 int dataLength, |
| 108 int encodedDataLength); | 109 int encodedDataLength); |
| 109 virtual void dispatchDidFinishLoading(unsigned long identifier, | 110 virtual void dispatchDidFinishLoading(unsigned long identifier, |
| 110 double finishTime, | 111 double finishTime, |
| 111 int64_t encodedDataLength); | 112 int64_t encodedDataLength); |
| 112 virtual void dispatchDidFail(unsigned long identifier, | 113 virtual void dispatchDidFail(unsigned long identifier, |
| 113 const ResourceError&, | 114 const ResourceError&, |
| 115 int64_t encodedDataLength, |
| 114 bool isInternalRequest); | 116 bool isInternalRequest); |
| 115 | 117 |
| 116 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } | 118 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } |
| 117 // Called when a resource load is first requested, which may not be when the | 119 // Called when a resource load is first requested, which may not be when the |
| 118 // load actually begins. | 120 // load actually begins. |
| 119 virtual void willStartLoadingResource(unsigned long identifier, | 121 virtual void willStartLoadingResource(unsigned long identifier, |
| 120 ResourceRequest&, | 122 ResourceRequest&, |
| 121 Resource::Type); | 123 Resource::Type); |
| 122 virtual void didLoadResource(Resource*); | 124 virtual void didLoadResource(Resource*); |
| 123 | 125 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 | 168 |
| 167 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } | 169 virtual WebTaskRunner* loadingTaskRunner() const { return nullptr; } |
| 168 | 170 |
| 169 protected: | 171 protected: |
| 170 FetchContext() {} | 172 FetchContext() {} |
| 171 }; | 173 }; |
| 172 | 174 |
| 173 } // namespace blink | 175 } // namespace blink |
| 174 | 176 |
| 175 #endif | 177 #endif |
| OLD | NEW |