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