Chromium Code Reviews| 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_PROXY_H_ | 5 #ifndef IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_H_ |
| 6 #define IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_H_ | 6 #define IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_H_ |
| 7 | 7 |
| 8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
| 9 | 9 |
| 10 #import "ios/net/clients/crn_network_client_protocol.h" | 10 #import "ios/net/clients/crn_network_client_protocol.h" |
| 11 | 11 |
| 12 // HttpProtocolHandlerProxy is responsible for managing access to the | 12 // HttpProtocolHandlerProxy is responsible for managing access to the |
| 13 // NSURLProtocol and its client. | 13 // NSURLProtocol and its client. |
| 14 @protocol CRNHTTPProtocolHandlerProxy<CRNNetworkClientProtocol> | 14 @protocol CRNHTTPProtocolHandlerProxy<CRNNetworkClientProtocol> |
| 15 | 15 |
| 16 // Invalidates any reference to the protocol handler: the handler will never | 16 // Invalidates any reference to the protocol handler: the handler will never |
| 17 // be called after this. | 17 // be called after this. |
| 18 // Called from the client thread. | 18 // Called from the client thread. |
|
droger
2015/06/11 08:56:19
Maybe remove this "Called from the client thread."
droger
2015/06/11 08:58:36
Actually I'm not sure if all the methods of CRNNet
droger
2015/06/11 09:01:21
Looking at the code I would think that in practice
Elly Fong-Jones
2015/06/11 13:49:33
Documented, at least.
| |
| 19 - (void)invalidate; | 19 - (void)invalidate; |
| 20 | 20 |
| 21 // Pauses notifications from this protocol handler. | |
| 22 - (void)pause; | |
| 23 | |
| 24 // Resumes notifications from this protocol handler. | |
| 25 - (void)resume; | |
| 26 | |
| 21 @end | 27 @end |
| 22 | 28 |
| 23 #endif // IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_H_ | 29 #endif // IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_H_ |
| OLD | NEW |