crn_http_protocol_handler_proxy_with_client_thread.h 874 B

12345678910111213141516171819202122
  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
  3. // found in the LICENSE file.
  4. #ifndef IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_WITH_CLIENT_THREAD_H_
  5. #define IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_WITH_CLIENT_THREAD_H_
  6. #import <Foundation/Foundation.h>
  7. #import "ios/net/crn_http_protocol_handler_proxy.h"
  8. // This CRNHTTPProtocolHandlerProxy only calls the client from the client
  9. // thread. This is what is recommended by the documentation.
  10. @interface CRNHTTPProtocolHandlerProxyWithClientThread
  11. : NSObject<CRNHTTPProtocolHandlerProxy>
  12. - (instancetype)initWithProtocol:(NSURLProtocol*)protocol
  13. clientThread:(NSThread*)clientThread
  14. runLoopMode:(NSString*)mode;
  15. @end
  16. #endif // IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_WITH_CLIENT_THREAD_H_