• akalin@chromium.org's avatar
    [SPDY] Refactor SpdySession's write queue · 1f4179d3
    akalin@chromium.org authored
    This is in preparation for replacing the various IOBuffers used for reads/writes
    with a single SpdyBuffer class.
    
    Replace the priority queue of SpdyIOBufferProducers with a SpdyWriteQueue object,
    which is an an array of FIFO queues binned by priority.
    The priority queue was looking only at priority and so was not guaranteeing
    FIFO behavior among producers with the same priority.
    
    Remove the frame queue in SpdyStream and instead have it use the session's
    write queue directly.
    
    Remove unused fields from SpdyIOBuffer and clean it up.
    
    Propagate and handle errors from SpdyCredentialBuilder::Build.
    
    Rename SpdyIOBufferProducer to SpdyFrameProducer, have it return a SpdyFrame,
    clean up its interface, and move the stream-activating logic out of it.
    
    Replace uses of std::list with std::deque.
    
    Steamline logic in SpdySession that deals with the write queue.
    
    Convert some raw pointers to scoped_ptr<>.
    
    BUG=176582
    
    Review URL: https://codereview.chromium.org/13009012
    
    git-svn-id: svn://svn.chromium.org/chrome/trunk/src@192975 0039d316-1c4b-4281-b951-d872f2087c98
    1f4179d3
spdy_stream.cc 28.3 KB