| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_H_ | 5 #ifndef IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_H_ |
| 6 #define IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_H_ | 6 #define IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 namespace net { | 10 namespace net { |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 } // namespace net | 34 } // namespace net |
| 35 | 35 |
| 36 // Custom NSURLProtocol handling HTTP and HTTPS requests. | 36 // Custom NSURLProtocol handling HTTP and HTTPS requests. |
| 37 // The HttpProtocolHandler is registered as a NSURLProtocol in the iOS system. | 37 // The HttpProtocolHandler is registered as a NSURLProtocol in the iOS system. |
| 38 // This protocol is called for each NSURLRequest. This allows handling the | 38 // This protocol is called for each NSURLRequest. This allows handling the |
| 39 // requests issued by UIWebView using our own network stack. | 39 // requests issued by UIWebView using our own network stack. |
| 40 @interface CRNHTTPProtocolHandler : NSURLProtocol | 40 @interface CRNHTTPProtocolHandler : NSURLProtocol |
| 41 @end | 41 @end |
| 42 | 42 |
| 43 // Custom NSURLProtocol handling HTTP and HTTPS requests. |
| 44 // The HttpProtocolHandler is registered as a NSURLProtocol in the iOS system. |
| 45 // This protocol is called for each NSURLRequest. This allows handling the |
| 46 // requests issued by UIWebView using our own network stack. This protocol |
| 47 // handler implements iOS 8 NSURLProtocol pause/resume semantics, in which |
| 48 // |startLoading| means "start or resume" and |stopLoading| means "pause". |
| 49 @interface CRNPauseableHTTPProtocolHandler : CRNHTTPProtocolHandler |
| 50 @end |
| 51 |
| 43 #endif // IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_H_ | 52 #endif // IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_H_ |
| OLD | NEW |