Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(580)

Side by Side Diff: net/http/http_transaction_test_util.h

Issue 2898573002: Refactor client cert private key handling. (Closed)
Patch Set: removed no longer needed forward declaration Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « net/http/http_transaction.h ('k') | net/http/http_transaction_test_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 NET_HTTP_HTTP_TRANSACTION_TEST_UTIL_H_ 5 #ifndef NET_HTTP_HTTP_TRANSACTION_TEST_UTIL_H_
6 #define NET_HTTP_HTTP_TRANSACTION_TEST_UTIL_H_ 6 #define NET_HTTP_HTTP_TRANSACTION_TEST_UTIL_H_
7 7
8 #include "net/http/http_transaction.h" 8 #include "net/http/http_transaction.h"
9 9
10 #include <stdint.h> 10 #include <stdint.h>
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 public: 182 public:
183 MockNetworkTransaction(RequestPriority priority, MockNetworkLayer* factory); 183 MockNetworkTransaction(RequestPriority priority, MockNetworkLayer* factory);
184 ~MockNetworkTransaction() override; 184 ~MockNetworkTransaction() override;
185 185
186 int Start(const HttpRequestInfo* request, 186 int Start(const HttpRequestInfo* request,
187 const CompletionCallback& callback, 187 const CompletionCallback& callback,
188 const NetLogWithSource& net_log) override; 188 const NetLogWithSource& net_log) override;
189 189
190 int RestartIgnoringLastError(const CompletionCallback& callback) override; 190 int RestartIgnoringLastError(const CompletionCallback& callback) override;
191 191
192 int RestartWithCertificate(X509Certificate* client_cert, 192 int RestartWithCertificate(scoped_refptr<X509Certificate> client_cert,
193 SSLPrivateKey* client_private_key, 193 scoped_refptr<SSLPrivateKey> client_private_key,
194 const CompletionCallback& callback) override; 194 const CompletionCallback& callback) override;
195 195
196 int RestartWithAuth(const AuthCredentials& credentials, 196 int RestartWithAuth(const AuthCredentials& credentials,
197 const CompletionCallback& callback) override; 197 const CompletionCallback& callback) override;
198 198
199 bool IsReadyToRestartForAuth() override; 199 bool IsReadyToRestartForAuth() override;
200 200
201 int Read(IOBuffer* buf, 201 int Read(IOBuffer* buf,
202 int buf_len, 202 int buf_len,
203 const CompletionCallback& callback) override; 203 const CompletionCallback& callback) override;
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 351
352 //----------------------------------------------------------------------------- 352 //-----------------------------------------------------------------------------
353 // helpers 353 // helpers
354 354
355 // read the transaction completely 355 // read the transaction completely
356 int ReadTransaction(HttpTransaction* trans, std::string* result); 356 int ReadTransaction(HttpTransaction* trans, std::string* result);
357 357
358 } // namespace net 358 } // namespace net
359 359
360 #endif // NET_HTTP_HTTP_TRANSACTION_TEST_UTIL_H_ 360 #endif // NET_HTTP_HTTP_TRANSACTION_TEST_UTIL_H_
OLDNEW
« no previous file with comments | « net/http/http_transaction.h ('k') | net/http/http_transaction_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698