| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <deque> | 9 #include <deque> |
| 10 #include <list> | 10 #include <list> |
| (...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 329 // can be deferred to the MessageLoop, so we avoid re-entrancy problems. | 329 // can be deferred to the MessageLoop, so we avoid re-entrancy problems. |
| 330 void InvokeUserStreamCreationCallback(scoped_refptr<SpdyStream>* stream); | 330 void InvokeUserStreamCreationCallback(scoped_refptr<SpdyStream>* stream); |
| 331 | 331 |
| 332 // SpdyFramerVisitorInterface: | 332 // SpdyFramerVisitorInterface: |
| 333 virtual void OnError(spdy::SpdyFramer*); | 333 virtual void OnError(spdy::SpdyFramer*); |
| 334 virtual void OnStreamFrameData(spdy::SpdyStreamId stream_id, | 334 virtual void OnStreamFrameData(spdy::SpdyStreamId stream_id, |
| 335 const char* data, | 335 const char* data, |
| 336 size_t len); | 336 size_t len); |
| 337 virtual void OnControl(const spdy::SpdyControlFrame* frame); | 337 virtual void OnControl(const spdy::SpdyControlFrame* frame); |
| 338 | 338 |
| 339 virtual bool OnControlFrameHeaderData(spdy::SpdyStreamId stream_id, |
| 340 const char* header_data, |
| 341 size_t len); |
| 342 |
| 343 virtual void OnDataFrameHeader(const spdy::SpdyDataFrame* frame); |
| 344 |
| 339 // Callbacks for the Spdy session. | 345 // Callbacks for the Spdy session. |
| 340 CompletionCallbackImpl<SpdySession> read_callback_; | 346 CompletionCallbackImpl<SpdySession> read_callback_; |
| 341 CompletionCallbackImpl<SpdySession> write_callback_; | 347 CompletionCallbackImpl<SpdySession> write_callback_; |
| 342 | 348 |
| 343 // Used for posting asynchronous IO tasks. We use this even though | 349 // Used for posting asynchronous IO tasks. We use this even though |
| 344 // SpdySession is refcounted because we don't need to keep the SpdySession | 350 // SpdySession is refcounted because we don't need to keep the SpdySession |
| 345 // alive if the last reference is within a RunnableMethod. Just revoke the | 351 // alive if the last reference is within a RunnableMethod. Just revoke the |
| 346 // method. | 352 // method. |
| 347 ScopedRunnableMethodFactory<SpdySession> method_factory_; | 353 ScopedRunnableMethodFactory<SpdySession> method_factory_; |
| 348 | 354 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 const spdy::SpdyControlFlags flags_; | 472 const spdy::SpdyControlFlags flags_; |
| 467 const spdy::SpdyStreamId id_; | 473 const spdy::SpdyStreamId id_; |
| 468 const spdy::SpdyStreamId associated_stream_; | 474 const spdy::SpdyStreamId associated_stream_; |
| 469 | 475 |
| 470 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); | 476 DISALLOW_COPY_AND_ASSIGN(NetLogSpdySynParameter); |
| 471 }; | 477 }; |
| 472 | 478 |
| 473 } // namespace net | 479 } // namespace net |
| 474 | 480 |
| 475 #endif // NET_SPDY_SPDY_SESSION_H_ | 481 #endif // NET_SPDY_SPDY_SESSION_H_ |
| OLD | NEW |