Speculative crash fix; check for a null focused view before derefing.
[chromium-blink-merge.git] / ios / net / crn_http_protocol_handler_proxy.h
blob898db4ad448c1a170a70008273f9b85cbdd96e34
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.
5 #ifndef IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_H_
6 #define IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_H_
8 #import <Foundation/Foundation.h>
10 #import "ios/net/clients/crn_network_client_protocol.h"
12 // HttpProtocolHandlerProxy is responsible for managing access to the
13 // NSURLProtocol and its client.
14 @protocol CRNHTTPProtocolHandlerProxy<CRNNetworkClientProtocol>
16 // Invalidates any reference to the protocol handler: the handler will never
17 // be called after this.
18 // Called from the client thread.
19 - (void)invalidate;
21 @end
23 #endif // IOS_NET_CRN_HTTP_PROTOCOL_HANDLER_PROXY_H_