| 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_SESSION_H_ | 5 #ifndef NET_SPDY_SPDY_SESSION_H_ |
| 6 #define NET_SPDY_SPDY_SESSION_H_ | 6 #define NET_SPDY_SPDY_SESSION_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 #include "net/base/net_errors.h" | 26 #include "net/base/net_errors.h" |
| 27 #include "net/base/net_export.h" | 27 #include "net/base/net_export.h" |
| 28 #include "net/base/request_priority.h" | 28 #include "net/base/request_priority.h" |
| 29 #include "net/socket/client_socket_handle.h" | 29 #include "net/socket/client_socket_handle.h" |
| 30 #include "net/socket/client_socket_pool.h" | 30 #include "net/socket/client_socket_pool.h" |
| 31 #include "net/socket/next_proto.h" | 31 #include "net/socket/next_proto.h" |
| 32 #include "net/socket/ssl_client_socket.h" | 32 #include "net/socket/ssl_client_socket.h" |
| 33 #include "net/socket/stream_socket.h" | 33 #include "net/socket/stream_socket.h" |
| 34 #include "net/spdy/buffered_spdy_framer.h" | 34 #include "net/spdy/buffered_spdy_framer.h" |
| 35 #include "net/spdy/http2_priority_dependencies.h" | 35 #include "net/spdy/http2_priority_dependencies.h" |
| 36 #include "net/spdy/spdy_alt_svc_wire_format.h" |
| 36 #include "net/spdy/spdy_buffer.h" | 37 #include "net/spdy/spdy_buffer.h" |
| 37 #include "net/spdy/spdy_framer.h" | 38 #include "net/spdy/spdy_framer.h" |
| 38 #include "net/spdy/spdy_header_block.h" | 39 #include "net/spdy/spdy_header_block.h" |
| 39 #include "net/spdy/spdy_protocol.h" | 40 #include "net/spdy/spdy_protocol.h" |
| 40 #include "net/spdy/spdy_session_pool.h" | 41 #include "net/spdy/spdy_session_pool.h" |
| 41 #include "net/spdy/spdy_stream.h" | 42 #include "net/spdy/spdy_stream.h" |
| 42 #include "net/spdy/spdy_write_queue.h" | 43 #include "net/spdy/spdy_write_queue.h" |
| 43 #include "net/ssl/ssl_config_service.h" | 44 #include "net/ssl/ssl_config_service.h" |
| 44 #include "url/gurl.h" | 45 #include "url/gurl.h" |
| 45 #include "url/scheme_host_port.h" | 46 #include "url/scheme_host_port.h" |
| (...skipping 855 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 901 void OnSynReply(SpdyStreamId stream_id, | 902 void OnSynReply(SpdyStreamId stream_id, |
| 902 bool fin, | 903 bool fin, |
| 903 const SpdyHeaderBlock& headers) override; | 904 const SpdyHeaderBlock& headers) override; |
| 904 void OnHeaders(SpdyStreamId stream_id, | 905 void OnHeaders(SpdyStreamId stream_id, |
| 905 bool has_priority, | 906 bool has_priority, |
| 906 int weight, | 907 int weight, |
| 907 SpdyStreamId parent_stream_id, | 908 SpdyStreamId parent_stream_id, |
| 908 bool exclusive, | 909 bool exclusive, |
| 909 bool fin, | 910 bool fin, |
| 910 const SpdyHeaderBlock& headers) override; | 911 const SpdyHeaderBlock& headers) override; |
| 912 void OnAltSvc(SpdyStreamId stream_id, |
| 913 base::StringPiece origin, |
| 914 const SpdyAltSvcWireFormat::AlternativeServiceVector& |
| 915 altsvc_vector) override; |
| 911 bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) override; | 916 bool OnUnknownFrame(SpdyStreamId stream_id, int frame_type) override; |
| 912 | 917 |
| 913 // SpdyFramerDebugVisitorInterface | 918 // SpdyFramerDebugVisitorInterface |
| 914 void OnSendCompressedFrame(SpdyStreamId stream_id, | 919 void OnSendCompressedFrame(SpdyStreamId stream_id, |
| 915 SpdyFrameType type, | 920 SpdyFrameType type, |
| 916 size_t payload_len, | 921 size_t payload_len, |
| 917 size_t frame_len) override; | 922 size_t frame_len) override; |
| 918 void OnReceiveCompressedFrame(SpdyStreamId stream_id, | 923 void OnReceiveCompressedFrame(SpdyStreamId stream_id, |
| 919 SpdyFrameType type, | 924 SpdyFrameType type, |
| 920 size_t frame_len) override; | 925 size_t frame_len) override; |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1231 // Used for posting asynchronous IO tasks. We use this even though | 1236 // Used for posting asynchronous IO tasks. We use this even though |
| 1232 // SpdySession is refcounted because we don't need to keep the SpdySession | 1237 // SpdySession is refcounted because we don't need to keep the SpdySession |
| 1233 // alive if the last reference is within a RunnableMethod. Just revoke the | 1238 // alive if the last reference is within a RunnableMethod. Just revoke the |
| 1234 // method. | 1239 // method. |
| 1235 base::WeakPtrFactory<SpdySession> weak_factory_; | 1240 base::WeakPtrFactory<SpdySession> weak_factory_; |
| 1236 }; | 1241 }; |
| 1237 | 1242 |
| 1238 } // namespace net | 1243 } // namespace net |
| 1239 | 1244 |
| 1240 #endif // NET_SPDY_SPDY_SESSION_H_ | 1245 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |