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

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

Issue 2349363002: Adds GetLoadTimingInfo to net::BidirectionalStreamImpl (Closed)
Patch Set: address comments Created 4 years, 3 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ 5 #ifndef NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_
6 #define NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ 6 #define NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
11 #include <vector> 11 #include <vector>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/ref_counted.h" 14 #include "base/memory/ref_counted.h"
15 #include "base/memory/weak_ptr.h" 15 #include "base/memory/weak_ptr.h"
16 #include "net/base/load_timing_info.h"
16 #include "net/http/bidirectional_stream_impl.h" 17 #include "net/http/bidirectional_stream_impl.h"
17 #include "net/http/bidirectional_stream_request_info.h" 18 #include "net/http/bidirectional_stream_request_info.h"
18 #include "net/http/http_request_info.h" 19 #include "net/http/http_request_info.h"
19 #include "net/spdy/spdy_read_queue.h" 20 #include "net/spdy/spdy_read_queue.h"
20 #include "net/spdy/spdy_session.h" 21 #include "net/spdy/spdy_session.h"
21 #include "net/spdy/spdy_stream.h" 22 #include "net/spdy/spdy_stream.h"
22 23
23 namespace base { 24 namespace base {
24 class Timer; 25 class Timer;
25 } // namespace base 26 } // namespace base
(...skipping 23 matching lines...) Expand all
49 int ReadData(IOBuffer* buf, int buf_len) override; 50 int ReadData(IOBuffer* buf, int buf_len) override;
50 void SendData(const scoped_refptr<IOBuffer>& data, 51 void SendData(const scoped_refptr<IOBuffer>& data,
51 int length, 52 int length,
52 bool end_stream) override; 53 bool end_stream) override;
53 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers, 54 void SendvData(const std::vector<scoped_refptr<IOBuffer>>& buffers,
54 const std::vector<int>& lengths, 55 const std::vector<int>& lengths,
55 bool end_stream) override; 56 bool end_stream) override;
56 NextProto GetProtocol() const override; 57 NextProto GetProtocol() const override;
57 int64_t GetTotalReceivedBytes() const override; 58 int64_t GetTotalReceivedBytes() const override;
58 int64_t GetTotalSentBytes() const override; 59 int64_t GetTotalSentBytes() const override;
60 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const override;
59 61
60 // SpdyStream::Delegate implementation: 62 // SpdyStream::Delegate implementation:
61 void OnRequestHeadersSent() override; 63 void OnRequestHeadersSent() override;
62 SpdyResponseHeadersStatus OnResponseHeadersUpdated( 64 SpdyResponseHeadersStatus OnResponseHeadersUpdated(
63 const SpdyHeaderBlock& response_headers) override; 65 const SpdyHeaderBlock& response_headers) override;
64 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override; 66 void OnDataReceived(std::unique_ptr<SpdyBuffer> buffer) override;
65 void OnDataSent() override; 67 void OnDataSent() override;
66 void OnTrailers(const SpdyHeaderBlock& trailers) override; 68 void OnTrailers(const SpdyHeaderBlock& trailers) override;
67 void OnClose(int status) override; 69 void OnClose(int status) override;
68 70
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 scoped_refptr<IOBuffer> pending_combined_buffer_; 110 scoped_refptr<IOBuffer> pending_combined_buffer_;
109 111
110 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_; 112 base::WeakPtrFactory<BidirectionalStreamSpdyImpl> weak_factory_;
111 113
112 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl); 114 DISALLOW_COPY_AND_ASSIGN(BidirectionalStreamSpdyImpl);
113 }; 115 };
114 116
115 } // namespace net 117 } // namespace net
116 118
117 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_ 119 #endif // NET_SPDY_BIDIRECTIONAL_STREAM_SPDY_IMPL_H_
OLDNEW
« no previous file with comments | « net/quic/chromium/bidirectional_stream_quic_impl.cc ('k') | net/spdy/bidirectional_stream_spdy_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698