| Index: third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h
|
| diff --git a/third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h b/third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..299963d407ffc4fb6d16e0019e91303eb2349c4b
|
| --- /dev/null
|
| +++ b/third_party/WebKit/public/web/WebAssociatedURLLoaderClient.h
|
| @@ -0,0 +1,35 @@
|
| +// Copyright 2016 The Chromium Authors. All rights reserved.
|
| +// Use of this source code is governed by a BSD-style license that can be
|
| +// found in the LICENSE file.
|
| +
|
| +#ifndef WebAssociatedURLLoaderClient_h
|
| +#define WebAssociatedURLLoaderClient_h
|
| +
|
| +namespace blink {
|
| +
|
| +class WebURLRequest;
|
| +class WebURLResponse;
|
| +struct WebURLError;
|
| +
|
| +class WebAssociatedURLLoaderClient {
|
| + public:
|
| + virtual bool willFollowRedirect(const WebURLRequest& newRequest,
|
| + const WebURLResponse& redirectResponse) {
|
| + return true;
|
| + }
|
| + virtual void didSendData(unsigned long long bytesSent,
|
| + unsigned long long totalBytesToBeSent) {}
|
| + virtual void didReceiveResponse(const WebURLResponse&) {}
|
| + virtual void didDownloadData(int dataLength) {}
|
| + virtual void didReceiveData(const char* data, int dataLength) {}
|
| + virtual void didReceiveCachedMetadata(const char* data, int dataLength) {}
|
| + virtual void didFinishLoading(double finishTime) {}
|
| + virtual void didFail(const WebURLError&) {}
|
| +
|
| + protected:
|
| + virtual ~WebAssociatedURLLoaderClient() {}
|
| +};
|
| +
|
| +} // namespace blink
|
| +
|
| +#endif
|
|
|