OLD | NEW |
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 #include "net/spdy/core/spdy_frame_builder.h" | 5 #include "net/spdy/core/spdy_frame_builder.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <cstdint> | 8 #include <cstdint> |
9 #include <limits> | 9 #include <limits> |
| 10 #include <new> |
10 | 11 |
11 #include "base/logging.h" | 12 #include "base/logging.h" |
12 #include "net/spdy/core/spdy_bug_tracker.h" | 13 #include "net/spdy/core/spdy_bug_tracker.h" |
13 #include "net/spdy/core/spdy_framer.h" | 14 #include "net/spdy/core/spdy_framer.h" |
14 #include "net/spdy/core/spdy_protocol.h" | 15 #include "net/spdy/core/spdy_protocol.h" |
15 #include "net/spdy/core/zero_copy_output_buffer.h" | 16 #include "net/spdy/core/zero_copy_output_buffer.h" |
16 | 17 |
17 namespace net { | 18 namespace net { |
18 | 19 |
19 SpdyFrameBuilder::SpdyFrameBuilder(size_t size) | 20 SpdyFrameBuilder::SpdyFrameBuilder(size_t size) |
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
271 } else { | 272 } else { |
272 if (length > output_->BytesFree()) { | 273 if (length > output_->BytesFree()) { |
273 return false; | 274 return false; |
274 } | 275 } |
275 } | 276 } |
276 | 277 |
277 return true; | 278 return true; |
278 } | 279 } |
279 | 280 |
280 } // namespace net | 281 } // namespace net |
OLD | NEW |