Chromium Code Reviews| Index: net/spdy/spdy_protocol.h |
| diff --git a/net/spdy/spdy_protocol.h b/net/spdy/spdy_protocol.h |
| index 9d4ec44fc52c97015417132af5cf820bafc380be..f395a75d96dade970b3a5db3d5682b76486028f1 100644 |
| --- a/net/spdy/spdy_protocol.h |
| +++ b/net/spdy/spdy_protocol.h |
| @@ -858,6 +858,13 @@ class SpdySerializedFrame { |
| return buffer; |
| } |
| + // Returns the estimate of dynamically allocated memory in bytes. |
| + size_t EstimateMemoryUsage() const { |
| + if (owns_buffer_) |
|
Bence
2017/02/08 14:46:45
Optional: if you think it is easier to read, maybe
xunjieli
2017/02/08 15:42:50
Done.
|
| + return size_; |
| + return 0; |
| + } |
| + |
| protected: |
| char* frame_; |