OLD | NEW |
(Empty) | |
| 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. |
| 4 |
| 5 #ifndef IOS_WEB_NET_WEB_HTTP_PROTOCOL_HANDLER_DELEGATE_H_ |
| 6 #define IOS_WEB_NET_WEB_HTTP_PROTOCOL_HANDLER_DELEGATE_H_ |
| 7 |
| 8 #include "base/memory/ref_counted.h" |
| 9 #import "ios/net/crn_http_protocol_handler.h" |
| 10 |
| 11 namespace web { |
| 12 |
| 13 // Web-specific implementation of net::HTTPProtocolHandlerDelegate. |
| 14 class WebHTTPProtocolHandlerDelegate : public net::HTTPProtocolHandlerDelegate { |
| 15 public: |
| 16 WebHTTPProtocolHandlerDelegate(net::URLRequestContextGetter* default_getter); |
| 17 ~WebHTTPProtocolHandlerDelegate() override; |
| 18 |
| 19 // net::HTTPProtocolHandlerDelegate implementation: |
| 20 bool CanHandleRequest(NSURLRequest* request) override; |
| 21 bool IsRequestSupported(NSURLRequest* request) override; |
| 22 net::URLRequestContextGetter* GetDefaultURLRequestContext() override; |
| 23 |
| 24 private: |
| 25 scoped_refptr<net::URLRequestContextGetter> default_getter_; |
| 26 }; |
| 27 |
| 28 } // namespace web |
| 29 |
| 30 #endif // IOS_WEB_NET_WEB_HTTP_PROTOCOL_HANDLER_DELEGATE_H_ |
OLD | NEW |