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

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

Issue 154243006: Add GetExpirationTimes() to HttpResponseHeader. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: catch some users Created 4 years, 7 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 | Annotate | Revision Log
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 28 matching lines...) Expand all
39 39
40 class PartialData; 40 class PartialData;
41 struct HttpRequestInfo; 41 struct HttpRequestInfo;
42 struct LoadTimingInfo; 42 struct LoadTimingInfo;
43 class SSLPrivateKey; 43 class SSLPrivateKey;
44 44
45 // This is the transaction that is returned by the HttpCache transaction 45 // This is the transaction that is returned by the HttpCache transaction
46 // factory. 46 // factory.
47 class HttpCache::Transaction : public HttpTransaction { 47 class HttpCache::Transaction : public HttpTransaction {
48 public: 48 public:
49 // Used for |RequiresValidation()|.
50 enum ValidationType {
51 VALIDATION_NONE, // The resource is fresh.
52 VALIDATION_ASYNCHRONOUS, // The resource requires async revalidation.
53 VALIDATION_SYNCHRONOUS // The resource requires sync revalidation.
54 };
55
49 // The transaction has the following modes, which apply to how it may access 56 // The transaction has the following modes, which apply to how it may access
50 // its cache entry. 57 // its cache entry.
51 // 58 //
52 // o If the mode of the transaction is NONE, then it is in "pass through" 59 // o If the mode of the transaction is NONE, then it is in "pass through"
53 // mode and all methods just forward to the inner network transaction. 60 // mode and all methods just forward to the inner network transaction.
54 // 61 //
55 // o If the mode of the transaction is only READ, then it may only read from 62 // o If the mode of the transaction is only READ, then it may only read from
56 // the cache entry. 63 // the cache entry.
57 // 64 //
58 // o If the mode of the transaction is only WRITE, then it may only write to 65 // o If the mode of the transaction is only WRITE, then it may only write to
(...skipping 435 matching lines...) Expand 10 before | Expand all | Expand 10 after
494 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; 501 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_;
495 502
496 base::WeakPtrFactory<Transaction> weak_factory_; 503 base::WeakPtrFactory<Transaction> weak_factory_;
497 504
498 DISALLOW_COPY_AND_ASSIGN(Transaction); 505 DISALLOW_COPY_AND_ASSIGN(Transaction);
499 }; 506 };
500 507
501 } // namespace net 508 } // namespace net
502 509
503 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ 510 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698