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 |
| 11 #include <stddef.h> |
| 12 |
11 #include <string> | 13 #include <string> |
12 | 14 |
| 15 #include "base/basictypes.h" |
| 16 #include "base/memory/ref_counted.h" |
| 17 #include "base/memory/scoped_ptr.h" |
| 18 #include "base/memory/weak_ptr.h" |
13 #include "base/time/time.h" | 19 #include "base/time/time.h" |
14 #include "net/base/completion_callback.h" | 20 #include "net/base/completion_callback.h" |
| 21 #include "net/base/io_buffer.h" |
| 22 #include "net/base/load_states.h" |
15 #include "net/base/request_priority.h" | 23 #include "net/base/request_priority.h" |
| 24 #include "net/base/upload_progress.h" |
16 #include "net/http/http_cache.h" | 25 #include "net/http/http_cache.h" |
17 #include "net/http/http_request_headers.h" | 26 #include "net/http/http_request_headers.h" |
18 #include "net/http/http_response_headers.h" | 27 #include "net/http/http_response_headers.h" |
19 #include "net/http/http_response_info.h" | 28 #include "net/http/http_response_info.h" |
20 #include "net/http/http_transaction.h" | 29 #include "net/http/http_transaction.h" |
| 30 #include "net/http/partial_data.h" |
21 #include "net/log/net_log.h" | 31 #include "net/log/net_log.h" |
22 #include "net/socket/connection_attempts.h" | 32 #include "net/socket/connection_attempts.h" |
| 33 #include "net/websockets/websocket_handshake_stream_base.h" |
23 | 34 |
24 namespace net { | 35 namespace net { |
25 | 36 |
26 class PartialData; | 37 class PartialData; |
27 struct HttpRequestInfo; | 38 struct HttpRequestInfo; |
28 struct LoadTimingInfo; | 39 struct LoadTimingInfo; |
29 | 40 |
30 // This is the transaction that is returned by the HttpCache transaction | 41 // This is the transaction that is returned by the HttpCache transaction |
31 // factory. | 42 // factory. |
32 class HttpCache::Transaction : public HttpTransaction { | 43 class HttpCache::Transaction : public HttpTransaction { |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; | 496 BeforeProxyHeadersSentCallback before_proxy_headers_sent_callback_; |
486 | 497 |
487 base::WeakPtrFactory<Transaction> weak_factory_; | 498 base::WeakPtrFactory<Transaction> weak_factory_; |
488 | 499 |
489 DISALLOW_COPY_AND_ASSIGN(Transaction); | 500 DISALLOW_COPY_AND_ASSIGN(Transaction); |
490 }; | 501 }; |
491 | 502 |
492 } // namespace net | 503 } // namespace net |
493 | 504 |
494 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ | 505 #endif // NET_HTTP_HTTP_CACHE_TRANSACTION_H_ |
OLD | NEW |