| 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 #ifndef NET_SPDY_SPDY_STREAM_H_ | 5 #ifndef NET_SPDY_SPDY_STREAM_H_ |
| 6 #define NET_SPDY_SPDY_STREAM_H_ | 6 #define NET_SPDY_SPDY_STREAM_H_ |
| 7 | 7 |
| 8 #include <deque> | 8 #include <deque> |
| 9 #include <string> | 9 #include <string> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
| 15 #include "base/memory/scoped_vector.h" | 15 #include "base/memory/scoped_vector.h" |
| 16 #include "base/memory/weak_ptr.h" | 16 #include "base/memory/weak_ptr.h" |
| 17 #include "net/base/bandwidth_metrics.h" | 17 #include "net/base/bandwidth_metrics.h" |
| 18 #include "net/base/io_buffer.h" | 18 #include "net/base/io_buffer.h" |
| 19 #include "net/base/net_export.h" | 19 #include "net/base/net_export.h" |
| 20 #include "net/base/net_log.h" | 20 #include "net/base/net_log.h" |
| 21 #include "net/base/request_priority.h" | 21 #include "net/base/request_priority.h" |
| 22 #include "net/socket/ssl_client_socket.h" | 22 #include "net/socket/ssl_client_socket.h" |
| 23 #include "net/spdy/spdy_buffer.h" | 23 #include "net/spdy/spdy_buffer.h" |
| 24 #include "net/spdy/spdy_framer.h" | 24 #include "net/spdy/spdy_framer.h" |
| 25 #include "net/spdy/spdy_header_block.h" | 25 #include "net/spdy/spdy_header_block.h" |
| 26 #include "net/spdy/spdy_protocol.h" | 26 #include "net/spdy/spdy_protocol.h" |
| 27 #include "net/ssl/server_bound_cert_service.h" | |
| 28 #include "net/ssl/ssl_client_cert_type.h" | 27 #include "net/ssl/ssl_client_cert_type.h" |
| 29 #include "url/gurl.h" | 28 #include "url/gurl.h" |
| 30 | 29 |
| 31 namespace net { | 30 namespace net { |
| 32 | 31 |
| 33 class AddressList; | 32 class AddressList; |
| 34 class IPEndPoint; | 33 class IPEndPoint; |
| 35 struct LoadTimingInfo; | 34 struct LoadTimingInfo; |
| 36 class SSLCertRequestInfo; | 35 class SSLCertRequestInfo; |
| 37 class SSLInfo; | 36 class SSLInfo; |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 551 | 550 |
| 552 // Number of bytes that have been received on this stream, including frame | 551 // Number of bytes that have been received on this stream, including frame |
| 553 // overhead and headers. | 552 // overhead and headers. |
| 554 int64 raw_received_bytes_; | 553 int64 raw_received_bytes_; |
| 555 | 554 |
| 556 // Number of data bytes that have been sent/received on this stream, not | 555 // Number of data bytes that have been sent/received on this stream, not |
| 557 // including frame overhead. Note that this does not count headers. | 556 // including frame overhead. Note that this does not count headers. |
| 558 int send_bytes_; | 557 int send_bytes_; |
| 559 int recv_bytes_; | 558 int recv_bytes_; |
| 560 | 559 |
| 561 std::string domain_bound_private_key_; | |
| 562 std::string domain_bound_cert_; | |
| 563 ServerBoundCertService::RequestHandle domain_bound_cert_request_handle_; | |
| 564 | |
| 565 // Guards calls of delegate write handlers ensuring |this| is not destroyed. | 560 // Guards calls of delegate write handlers ensuring |this| is not destroyed. |
| 566 // TODO(jgraettinger): Consider removing after crbug.com/35511 is tracked | 561 // TODO(jgraettinger): Consider removing after crbug.com/35511 is tracked |
| 567 // down. | 562 // down. |
| 568 bool write_handler_guard_; | 563 bool write_handler_guard_; |
| 569 | 564 |
| 570 base::WeakPtrFactory<SpdyStream> weak_ptr_factory_; | 565 base::WeakPtrFactory<SpdyStream> weak_ptr_factory_; |
| 571 | 566 |
| 572 DISALLOW_COPY_AND_ASSIGN(SpdyStream); | 567 DISALLOW_COPY_AND_ASSIGN(SpdyStream); |
| 573 }; | 568 }; |
| 574 | 569 |
| 575 } // namespace net | 570 } // namespace net |
| 576 | 571 |
| 577 #endif // NET_SPDY_SPDY_STREAM_H_ | 572 #endif // NET_SPDY_SPDY_STREAM_H_ |
| OLD | NEW |