Fix breakages in https://codereview.chromium.org/1155713003/
[chromium-blink-merge.git] / ios / web / net / web_http_protocol_handler_delegate.h
blobe88513453aaa495654c05f993f09fbeb16bfe22a
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"
11 namespace web {
13 // Web-specific implementation of net::HTTPProtocolHandlerDelegate.
14 class WebHTTPProtocolHandlerDelegate : public net::HTTPProtocolHandlerDelegate {
15 public:
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;
24 private:
25 scoped_refptr<net::URLRequestContextGetter> default_getter_;
28 } // namespace web
30 #endif // IOS_WEB_NET_WEB_HTTP_PROTOCOL_HANDLER_DELEGATE_H_