Chromium Code Reviews| OLD | NEW |
|---|---|
| 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 |
|
gavinp
2015/06/17 13:56:14
Should we also #include <stddef.h> for size_t?
(i
Adam Rice
2015/06/19 07:00:01
Done.
This file still uses the deprecated integer
| |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/basictypes.h" | |
| 14 #include "base/memory/ref_counted.h" | |
| 15 #include "base/memory/scoped_ptr.h" | |
| 16 #include "base/memory/weak_ptr.h" | |
| 13 #include "base/time/time.h" | 17 #include "base/time/time.h" |
| 14 #include "net/base/completion_callback.h" | 18 #include "net/base/completion_callback.h" |
| 19 #include "net/base/load_states.h" | |
| 15 #include "net/base/request_priority.h" | 20 #include "net/base/request_priority.h" |
| 21 #include "net/base/upload_progress.h" | |
| 16 #include "net/http/http_cache.h" | 22 #include "net/http/http_cache.h" |
| 17 #include "net/http/http_request_headers.h" | 23 #include "net/http/http_request_headers.h" |
| 18 #include "net/http/http_response_headers.h" | 24 #include "net/http/http_response_headers.h" |
| 19 #include "net/http/http_response_info.h" | 25 #include "net/http/http_response_info.h" |
| 20 #include "net/http/http_transaction.h" | 26 #include "net/http/http_transaction.h" |
| 27 #include "net/http/partial_data.h" | |
| 21 #include "net/log/net_log.h" | 28 #include "net/log/net_log.h" |
| 22 #include "net/socket/connection_attempts.h" | 29 #include "net/socket/connection_attempts.h" |
| 30 #include "net/websockets/websocket_handshake_stream_base.h" | |
| 23 | 31 |
| 24 namespace net { | 32 namespace net { |
| 25 | 33 |
| 34 class IOBuffer; | |
|
gavinp
2015/06/17 13:56:14
We use a scoped_refptr of IOBuffer (read_buf_ on l
Adam Rice
2015/06/19 07:00:01
No point in unnecessary excitement. I moved the io
| |
| 26 class PartialData; | 35 class PartialData; |
| 27 struct HttpRequestInfo; | 36 struct HttpRequestInfo; |
| 28 struct LoadTimingInfo; | 37 struct LoadTimingInfo; |
| 29 | 38 |
| 30 // This is the transaction that is returned by the HttpCache transaction | 39 // This is the transaction that is returned by the HttpCache transaction |
| 31 // factory. | 40 // factory. |
| 32 class HttpCache::Transaction : public HttpTransaction { | 41 class HttpCache::Transaction : public HttpTransaction { |
| 33 public: | 42 public: |
| 34 // The transaction has the following modes, which apply to how it may access | 43 // The transaction has the following modes, which apply to how it may access |
| 35 // its cache entry. | 44 // its cache entry. |
| (...skipping 449 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 485 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; | 494 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
| 486 | 495 |
| 487 base::WeakPtrFactory<Transaction> weak_factory_; | 496 base::WeakPtrFactory<Transaction> weak_factory_; |
| 488 | 497 |
| 489 DISALLOW_COPY_AND_ASSIGN(Transaction); | 498 DISALLOW_COPY_AND_ASSIGN(Transaction); |
| 490 }; | 499 }; |
| 491 | 500 |
| 492 } // namespace net | 501 } // namespace net |
| 493 | 502 |
| 494 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 503 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
| OLD | NEW |