Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(84)

Side by Side Diff: net/spdy/spdy_session.h

Issue 8036016: Updated spdy_framer.cc with the latest code. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « net/spdy/spdy_protocol.h ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « net/spdy/spdy_protocol.h ('k') | net/spdy/spdy_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698