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

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

Issue 1304143010: Plumbing SSLPrivateKey Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing unused function in Android. Created 5 years, 2 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // This file declares HttpCache::Transaction, a private class of HttpCache so 5 // This file declares HttpCache::Transaction, a private class of HttpCache so
6 // it should only be included by http_cache.cc 6 // it should only be included by http_cache.cc
7 7
8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 8 #ifndef NET_HTTP_HTTP_CACHE_TRANSACTION_H_
9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 9 #define NET_HTTP_HTTP_CACHE_TRANSACTION_H_
10 10
(...skipping 20 matching lines...) Expand all
31 #include "net/http/partial_data.h" 31 #include "net/http/partial_data.h"
32 #include "net/log/net_log.h" 32 #include "net/log/net_log.h"
33 #include "net/socket/connection_attempts.h" 33 #include "net/socket/connection_attempts.h"
34 #include "net/websockets/websocket_handshake_stream_base.h" 34 #include "net/websockets/websocket_handshake_stream_base.h"
35 35
36 namespace net { 36 namespace net {
37 37
38 class PartialData; 38 class PartialData;
39 struct HttpRequestInfo; 39 struct HttpRequestInfo;
40 struct LoadTimingInfo; 40 struct LoadTimingInfo;
41 class SSLPrivateKey;
41 42
42 // This is the transaction that is returned by the HttpCache transaction 43 // This is the transaction that is returned by the HttpCache transaction
43 // factory. 44 // factory.
44 class HttpCache::Transaction : public HttpTransaction { 45 class HttpCache::Transaction : public HttpTransaction {
45 public: 46 public:
46 // The transaction has the following modes, which apply to how it may access 47 // The transaction has the following modes, which apply to how it may access
47 // its cache entry. 48 // its cache entry.
48 // 49 //
49 // o If the mode of the transaction is NONE, then it is in "pass through" 50 // o If the mode of the transaction is NONE, then it is in "pass through"
50 // mode and all methods just forward to the inner network transaction. 51 // mode and all methods just forward to the inner network transaction.
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 void FailConditionalizationForTest() { 127 void FailConditionalizationForTest() {
127 fail_conditionalization_for_test_ = true; 128 fail_conditionalization_for_test_ = true;
128 } 129 }
129 130
130 // HttpTransaction methods: 131 // HttpTransaction methods:
131 int Start(const HttpRequestInfo* request_info, 132 int Start(const HttpRequestInfo* request_info,
132 const CompletionCallback& callback, 133 const CompletionCallback& callback,
133 const BoundNetLog& net_log) override; 134 const BoundNetLog& net_log) override;
134 int RestartIgnoringLastError(const CompletionCallback& callback) override; 135 int RestartIgnoringLastError(const CompletionCallback& callback) override;
135 int RestartWithCertificate(X509Certificate* client_cert, 136 int RestartWithCertificate(X509Certificate* client_cert,
137 SSLPrivateKey* client_private_key,
136 const CompletionCallback& callback) override; 138 const CompletionCallback& callback) override;
137 int RestartWithAuth(const AuthCredentials& credentials, 139 int RestartWithAuth(const AuthCredentials& credentials,
138 const CompletionCallback& callback) override; 140 const CompletionCallback& callback) override;
139 bool IsReadyToRestartForAuth() override; 141 bool IsReadyToRestartForAuth() override;
140 int Read(IOBuffer* buf, 142 int Read(IOBuffer* buf,
141 int buf_len, 143 int buf_len,
142 const CompletionCallback& callback) override; 144 const CompletionCallback& callback) override;
143 void StopCaching() override; 145 void StopCaching() override;
144 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override; 146 bool GetFullRequestHeaders(HttpRequestHeaders* headers) const override;
145 int64_t GetTotalReceivedBytes() const override; 147 int64_t GetTotalReceivedBytes() const override;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
324 // conditionalized internally in response to LOAD_VALIDATE_CACHE). 326 // conditionalized internally in response to LOAD_VALIDATE_CACHE).
325 // Returns a network error code. 327 // Returns a network error code.
326 int BeginExternallyConditionalizedRequest(); 328 int BeginExternallyConditionalizedRequest();
327 329
328 // Called to restart a network transaction after an error. Returns network 330 // Called to restart a network transaction after an error. Returns network
329 // error code. 331 // error code.
330 int RestartNetworkRequest(); 332 int RestartNetworkRequest();
331 333
332 // Called to restart a network transaction with a client certificate. 334 // Called to restart a network transaction with a client certificate.
333 // Returns network error code. 335 // Returns network error code.
334 int RestartNetworkRequestWithCertificate(X509Certificate* client_cert); 336 int RestartNetworkRequestWithCertificate(X509Certificate* client_cert,
337 SSLPrivateKey* client_private_key);
335 338
336 // Called to restart a network transaction with authentication credentials. 339 // Called to restart a network transaction with authentication credentials.
337 // Returns network error code. 340 // Returns network error code.
338 int RestartNetworkRequestWithAuth(const AuthCredentials& credentials); 341 int RestartNetworkRequestWithAuth(const AuthCredentials& credentials);
339 342
340 // Called to determine if we need to validate the cache entry before using it, 343 // Called to determine if we need to validate the cache entry before using it,
341 // and whether the validation should be synchronous or asynchronous. 344 // and whether the validation should be synchronous or asynchronous.
342 ValidationType RequiresValidation(); 345 ValidationType RequiresValidation();
343 346
344 // Called to make the request conditional (to ask the server if the cached 347 // Called to make the request conditional (to ask the server if the cached
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after
491 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; 494 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_;
492 495
493 base::WeakPtrFactory<Transaction> weak_factory_; 496 base::WeakPtrFactory<Transaction> weak_factory_;
494 497
495 DISALLOW_COPY_AND_ASSIGN(Transaction); 498 DISALLOW_COPY_AND_ASSIGN(Transaction);
496 }; 499 };
497 500
498 } // namespace net 501 } // namespace net
499 502
500 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 503 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698