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

Side by Side Diff: net/spdy/spdy_buffer_producer.cc

Issue 2832973003: Split net/spdy into core and chromium subdirectories. (Closed)
Patch Set: Fix some more build rules. Created 3 years, 8 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_buffer_producer.h ('k') | net/spdy/spdy_buffer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/spdy/spdy_buffer_producer.h"
6
7 #include <utility>
8
9 #include "base/logging.h"
10 #include "net/spdy/platform/api/spdy_estimate_memory_usage.h"
11 #include "net/spdy/spdy_buffer.h"
12 #include "net/spdy/spdy_protocol.h"
13
14 namespace net {
15
16 SpdyBufferProducer::SpdyBufferProducer() {}
17
18 SpdyBufferProducer::~SpdyBufferProducer() {}
19
20 SimpleBufferProducer::SimpleBufferProducer(std::unique_ptr<SpdyBuffer> buffer)
21 : buffer_(std::move(buffer)) {}
22
23 SimpleBufferProducer::~SimpleBufferProducer() {}
24
25 std::unique_ptr<SpdyBuffer> SimpleBufferProducer::ProduceBuffer() {
26 DCHECK(buffer_);
27 return std::move(buffer_);
28 }
29
30 size_t SimpleBufferProducer::EstimateMemoryUsage() const {
31 return SpdyEstimateMemoryUsage(buffer_);
32 }
33
34 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_buffer_producer.h ('k') | net/spdy/spdy_buffer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698