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_CLIENTS_CRN_NETWORK_CLIENT_PROTOCOL_H_ | 5 #ifndef IOS_NET_CLIENTS_CRN_NETWORK_CLIENT_PROTOCOL_H_ |
6 #define IOS_NET_CLIENTS_CRN_NETWORK_CLIENT_PROTOCOL_H_ | 6 #define IOS_NET_CLIENTS_CRN_NETWORK_CLIENT_PROTOCOL_H_ |
7 | 7 |
8 #import <Foundation/Foundation.h> | 8 #import <Foundation/Foundation.h> |
9 | 9 |
| 10 #include <memory> |
| 11 |
10 #include "base/callback_forward.h" | 12 #include "base/callback_forward.h" |
11 #include "base/memory/scoped_ptr.h" | |
12 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
13 | 14 |
14 namespace net { | 15 namespace net { |
15 class AuthChallengeInfo; | 16 class AuthChallengeInfo; |
16 class URLRequest; | 17 class URLRequest; |
17 } // namespace net | 18 } // namespace net |
18 | 19 |
19 namespace network_client { | 20 namespace network_client { |
20 typedef base::Callback<void(bool auth_ok, | 21 typedef base::Callback<void(bool auth_ok, |
21 const base::string16& username, | 22 const base::string16& username, |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 - (void)cancelAuthRequest; | 78 - (void)cancelAuthRequest; |
78 | 79 |
79 // If |underlyingClient| is not nil, the protocol is responsible for calling it. | 80 // If |underlyingClient| is not nil, the protocol is responsible for calling it. |
80 // If the protocol is only listening for network events, it should simply | 81 // If the protocol is only listening for network events, it should simply |
81 // forward all the calls to the underlying client. | 82 // forward all the calls to the underlying client. |
82 // Called from the IO thread. | 83 // Called from the IO thread. |
83 - (void)setUnderlyingClient:(id<CRNNetworkClientProtocol>)underlyingClient; | 84 - (void)setUnderlyingClient:(id<CRNNetworkClientProtocol>)underlyingClient; |
84 @end | 85 @end |
85 | 86 |
86 #endif // IOS_NET_CLIENTS_CRN_NETWORK_CLIENT_PROTOCOL_H_ | 87 #endif // IOS_NET_CLIENTS_CRN_NETWORK_CLIENT_PROTOCOL_H_ |
OLD | NEW |