| 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 virtual void dispatchDidReceiveData(unsigned long identifier, | 108 virtual void dispatchDidReceiveData(unsigned long identifier, |
| 109 const char* data, | 109 const char* data, |
| 110 int dataLength); | 110 int dataLength); |
| 111 virtual void dispatchDidReceiveEncodedData(unsigned long identifier, | 111 virtual void dispatchDidReceiveEncodedData(unsigned long identifier, |
| 112 int encodedDataLength); | 112 int encodedDataLength); |
| 113 virtual void dispatchDidDownloadData(unsigned long identifier, | 113 virtual void dispatchDidDownloadData(unsigned long identifier, |
| 114 int dataLength, | 114 int dataLength, |
| 115 int encodedDataLength); | 115 int encodedDataLength); |
| 116 virtual void dispatchDidFinishLoading(unsigned long identifier, | 116 virtual void dispatchDidFinishLoading(unsigned long identifier, |
| 117 double finishTime, | 117 double finishTime, |
| 118 int64_t encodedDataLength); | 118 int64_t encodedDataLength, |
| 119 int64_t decodedBodyLength); |
| 119 virtual void dispatchDidFail(unsigned long identifier, | 120 virtual void dispatchDidFail(unsigned long identifier, |
| 120 const ResourceError&, | 121 const ResourceError&, |
| 121 int64_t encodedDataLength, | 122 int64_t encodedDataLength, |
| 122 bool isInternalRequest); | 123 bool isInternalRequest); |
| 123 | 124 |
| 124 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } | 125 virtual bool shouldLoadNewResource(Resource::Type) const { return false; } |
| 125 // Called when a resource load is first requested, which may not be when the | 126 // Called when a resource load is first requested, which may not be when the |
| 126 // load actually begins. | 127 // load actually begins. |
| 127 enum class V8ActivityLoggingPolicy { SuppressLogging, Log }; | 128 enum class V8ActivityLoggingPolicy { SuppressLogging, Log }; |
| 128 virtual void willStartLoadingResource(unsigned long identifier, | 129 virtual void willStartLoadingResource(unsigned long identifier, |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 187 | 188 |
| 188 virtual RefPtr<WebTaskRunner> loadingTaskRunner() const { return nullptr; } | 189 virtual RefPtr<WebTaskRunner> loadingTaskRunner() const { return nullptr; } |
| 189 | 190 |
| 190 protected: | 191 protected: |
| 191 FetchContext() {} | 192 FetchContext() {} |
| 192 }; | 193 }; |
| 193 | 194 |
| 194 } // namespace blink | 195 } // namespace blink |
| 195 | 196 |
| 196 #endif | 197 #endif |
| OLD | NEW |