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

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

Issue 11644088: SPDY - implement greedy approach to read all the data and process it (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 12 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 | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <algorithm> 8 #include <algorithm>
9 #include <list> 9 #include <list>
10 #include <map> 10 #include <map>
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
415 415
416 void ProcessPendingCreateStreams(); 416 void ProcessPendingCreateStreams();
417 int CreateStreamImpl( 417 int CreateStreamImpl(
418 const GURL& url, 418 const GURL& url,
419 RequestPriority priority, 419 RequestPriority priority,
420 scoped_refptr<SpdyStream>* spdy_stream, 420 scoped_refptr<SpdyStream>* spdy_stream,
421 const BoundNetLog& stream_net_log); 421 const BoundNetLog& stream_net_log);
422 422
423 // IO Callbacks 423 // IO Callbacks
424 void OnReadComplete(int result); 424 void OnReadComplete(int result);
425 bool ProcessBytesRead(int bytes_read);
425 void OnWriteComplete(int result); 426 void OnWriteComplete(int result);
426 427
427 // Send relevant SETTINGS. This is generally called on connection setup. 428 // Send relevant SETTINGS. This is generally called on connection setup.
428 void SendInitialSettings(); 429 void SendInitialSettings();
429 430
430 // Helper method to send SETTINGS a frame. 431 // Helper method to send SETTINGS a frame.
431 void SendSettings(const SettingsMap& settings); 432 void SendSettings(const SettingsMap& settings);
432 433
433 // Handle SETTING. Either when we send settings, or when we receive a 434 // Handle SETTING. Either when we send settings, or when we receive a
434 // SETTINGS control frame, update our SpdySession accordingly. 435 // SETTINGS control frame, update our SpdySession accordingly.
(...skipping 297 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 // This SPDY proxy is allowed to push resources from origins that are 733 // This SPDY proxy is allowed to push resources from origins that are
733 // different from those of their associated streams. 734 // different from those of their associated streams.
734 HostPortPair trusted_spdy_proxy_; 735 HostPortPair trusted_spdy_proxy_;
735 736
736 TimeFunc time_func_; 737 TimeFunc time_func_;
737 }; 738 };
738 739
739 } // namespace net 740 } // namespace net
740 741
741 #endif // NET_SPDY_SPDY_SESSION_H_ 742 #endif // NET_SPDY_SPDY_SESSION_H_
OLDNEW
« no previous file with comments | « no previous file | net/spdy/spdy_session.cc » ('j') | net/spdy/spdy_session.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698