1 // Copyright 2014 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.
5 #ifndef IOS_WEB_NET_WEB_HTTP_PROTOCOL_HANDLER_DELEGATE_H_
6 #define IOS_WEB_NET_WEB_HTTP_PROTOCOL_HANDLER_DELEGATE_H_
8 #include "base/memory/ref_counted.h"
9 #import "ios/net/crn_http_protocol_handler.h"
13 // Web-specific implementation of net::HTTPProtocolHandlerDelegate.
14 class WebHTTPProtocolHandlerDelegate
: public net::HTTPProtocolHandlerDelegate
{
16 WebHTTPProtocolHandlerDelegate(net::URLRequestContextGetter
* default_getter
);
17 ~WebHTTPProtocolHandlerDelegate() override
;
19 // net::HTTPProtocolHandlerDelegate implementation:
20 bool CanHandleRequest(NSURLRequest
* request
) override
;
21 bool IsRequestSupported(NSURLRequest
* request
) override
;
22 net::URLRequestContextGetter
* GetDefaultURLRequestContext() override
;
25 scoped_refptr
<net::URLRequestContextGetter
> default_getter_
;
30 #endif // IOS_WEB_NET_WEB_HTTP_PROTOCOL_HANDLER_DELEGATE_H_