| Index: ios/web/net/web_http_protocol_handler_delegate.h
|
| diff --git a/ios/web/net/web_http_protocol_handler_delegate.h b/ios/web/net/web_http_protocol_handler_delegate.h
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..e88513453aaa495654c05f993f09fbeb16bfe22a
|
| --- /dev/null
|
| +++ b/ios/web/net/web_http_protocol_handler_delegate.h
|
| @@ -0,0 +1,30 @@
|
| +// Copyright 2014 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 IOS_WEB_NET_WEB_HTTP_PROTOCOL_HANDLER_DELEGATE_H_
|
| +#define IOS_WEB_NET_WEB_HTTP_PROTOCOL_HANDLER_DELEGATE_H_
|
| +
|
| +#include "base/memory/ref_counted.h"
|
| +#import "ios/net/crn_http_protocol_handler.h"
|
| +
|
| +namespace web {
|
| +
|
| +// Web-specific implementation of net::HTTPProtocolHandlerDelegate.
|
| +class WebHTTPProtocolHandlerDelegate : public net::HTTPProtocolHandlerDelegate {
|
| + public:
|
| + WebHTTPProtocolHandlerDelegate(net::URLRequestContextGetter* default_getter);
|
| + ~WebHTTPProtocolHandlerDelegate() override;
|
| +
|
| + // net::HTTPProtocolHandlerDelegate implementation:
|
| + bool CanHandleRequest(NSURLRequest* request) override;
|
| + bool IsRequestSupported(NSURLRequest* request) override;
|
| + net::URLRequestContextGetter* GetDefaultURLRequestContext() override;
|
| +
|
| + private:
|
| + scoped_refptr<net::URLRequestContextGetter> default_getter_;
|
| +};
|
| +
|
| +} // namespace web
|
| +
|
| +#endif // IOS_WEB_NET_WEB_HTTP_PROTOCOL_HANDLER_DELEGATE_H_
|
|
|