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

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

Issue 2429313003: Server push cancellation: add metrics collection for (Closed)
Patch Set: Created 4 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
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('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) 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_STREAM_H_ 5 #ifndef NET_SPDY_SPDY_STREAM_H_
6 #define NET_SPDY_SPDY_STREAM_H_ 6 #define NET_SPDY_SPDY_STREAM_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after
422 // yet. 422 // yet.
423 bool IsReservedRemote() const; 423 bool IsReservedRemote() const;
424 424
425 int response_status() const { return response_status_; } 425 int response_status() const { return response_status_; }
426 426
427 void AddRawReceivedBytes(size_t received_bytes); 427 void AddRawReceivedBytes(size_t received_bytes);
428 void AddRawSentBytes(size_t sent_bytes); 428 void AddRawSentBytes(size_t sent_bytes);
429 429
430 int64_t raw_received_bytes() const { return raw_received_bytes_; } 430 int64_t raw_received_bytes() const { return raw_received_bytes_; }
431 int64_t raw_sent_bytes() const { return raw_sent_bytes_; } 431 int64_t raw_sent_bytes() const { return raw_sent_bytes_; }
432 int recv_bytes() const { return recv_bytes_; }
432 433
433 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const; 434 bool GetLoadTimingInfo(LoadTimingInfo* load_timing_info) const;
434 435
435 // Get the URL from the appropriate stream headers, or the empty 436 // Get the URL from the appropriate stream headers, or the empty
436 // GURL() if it is unknown. 437 // GURL() if it is unknown.
437 const GURL& GetUrlFromHeaders() const { return url_from_header_block_; } 438 const GURL& GetUrlFromHeaders() const { return url_from_header_block_; }
438 439
439 private: 440 private:
440 class HeadersBufferProducer; 441 class HeadersBufferProducer;
441 442
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
571 bool write_handler_guard_; 572 bool write_handler_guard_;
572 573
573 base::WeakPtrFactory<SpdyStream> weak_ptr_factory_; 574 base::WeakPtrFactory<SpdyStream> weak_ptr_factory_;
574 575
575 DISALLOW_COPY_AND_ASSIGN(SpdyStream); 576 DISALLOW_COPY_AND_ASSIGN(SpdyStream);
576 }; 577 };
577 578
578 } // namespace net 579 } // namespace net
579 580
580 #endif // NET_SPDY_SPDY_STREAM_H_ 581 #endif // NET_SPDY_SPDY_STREAM_H_
OLDNEW
« no previous file with comments | « net/spdy/spdy_session_unittest.cc ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698