OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef WebAssociatedURLLoaderClient_h |
| 6 #define WebAssociatedURLLoaderClient_h |
| 7 |
| 8 namespace blink { |
| 9 |
| 10 class WebURLRequest; |
| 11 class WebURLResponse; |
| 12 struct WebURLError; |
| 13 |
| 14 class WebAssociatedURLLoaderClient { |
| 15 public: |
| 16 virtual bool willFollowRedirect(const WebURLRequest& newRequest, |
| 17 const WebURLResponse& redirectResponse) { |
| 18 return true; |
| 19 } |
| 20 virtual void didSendData(unsigned long long bytesSent, |
| 21 unsigned long long totalBytesToBeSent) {} |
| 22 virtual void didReceiveResponse(const WebURLResponse&) {} |
| 23 virtual void didDownloadData(int dataLength) {} |
| 24 virtual void didReceiveData(const char* data, int dataLength) {} |
| 25 virtual void didReceiveCachedMetadata(const char* data, int dataLength) {} |
| 26 virtual void didFinishLoading(double finishTime) {} |
| 27 virtual void didFail(const WebURLError&) {} |
| 28 |
| 29 protected: |
| 30 virtual ~WebAssociatedURLLoaderClient() {} |
| 31 }; |
| 32 |
| 33 } // namespace blink |
| 34 |
| 35 #endif |
OLD | NEW |