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

Unified Diff: net/spdy/array_output_buffer.h

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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/socket/ssl_client_socket_pool_unittest.cc ('k') | net/spdy/array_output_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/spdy/array_output_buffer.h
diff --git a/net/spdy/array_output_buffer.h b/net/spdy/array_output_buffer.h
deleted file mode 100644
index 25f495b27791257cd5580c3528b78f8a8249dc75..0000000000000000000000000000000000000000
--- a/net/spdy/array_output_buffer.h
+++ /dev/null
@@ -1,45 +0,0 @@
-// Copyright 2017 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef NET_SPDY_ARRAY_OUTPUT_BUFFER_H_
-#define NET_SPDY_ARRAY_OUTPUT_BUFFER_H_
-
-#include <cstddef>
-#include "net/spdy/zero_copy_output_buffer.h"
-
-namespace net {
-
-class ArrayOutputBuffer : public ZeroCopyOutputBuffer {
- public:
- // |buffer| is pointed to the output to write to, and |size| is the capacity
- // of the output.
- ArrayOutputBuffer(char* buffer, int64_t size)
- : current_(buffer), begin_(buffer), capacity_(size) {}
- ~ArrayOutputBuffer() override{};
-
- void Next(char** data, int* size) override;
- void AdvanceWritePtr(int64_t count) override;
- uint64_t BytesFree() const override;
-
- size_t Size() const { return current_ - begin_; }
- char* Begin() const { return begin_; }
-
- // Resets the buffer to its original state.
- void Reset() {
- capacity_ += Size();
- current_ = begin_;
- }
-
- ArrayOutputBuffer(const ArrayOutputBuffer&) = delete;
- ArrayOutputBuffer& operator=(const ArrayOutputBuffer&) = delete;
-
- private:
- char* current_ = nullptr;
- char* begin_ = nullptr;
- int64_t capacity_ = 0;
-};
-
-} // namespace net
-
-#endif // NET_SPDY_ARRAY_OUTPUT_BUFFER_H_
« no previous file with comments | « net/socket/ssl_client_socket_pool_unittest.cc ('k') | net/spdy/array_output_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698