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

Unified Diff: mojo/public/bindings/buffer.h

Issue 218613010: Mojo: Move mojo/public/bindings/*.h to mojo/public/cpp/bindings/*.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « mojo/public/bindings/array.h ('k') | mojo/public/bindings/callback.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/buffer.h
diff --git a/mojo/public/bindings/buffer.h b/mojo/public/bindings/buffer.h
deleted file mode 100644
index 13a65f1a98ee1ae060c126b6c51f4d8bb0806d21..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/buffer.h
+++ /dev/null
@@ -1,34 +0,0 @@
-// Copyright 2013 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 MOJO_PUBLIC_BINDINGS_BUFFER_H_
-#define MOJO_PUBLIC_BINDINGS_BUFFER_H_
-
-#include <stddef.h>
-
-namespace mojo {
-
-// Buffer provides a way to allocate memory. Allocations are 8-byte aligned and
-// zero-initialized. Allocations remain valid for the lifetime of the Buffer.
-class Buffer {
- public:
- typedef void (*Destructor)(void* address);
-
- Buffer();
- virtual ~Buffer();
-
- // A destructor may optionally be assigned to the allocation. Destructors run
- // (in LIFO order) when the Buffer instance is destroyed.
- virtual void* Allocate(size_t num_bytes, Destructor func = NULL) = 0;
-
- // Returns the current Buffer from thread local storage. May be NULL.
- static Buffer* current();
-
- private:
- Buffer* previous_;
-};
-
-} // namespace mojo
-
-#endif // MOJO_PUBLIC_BINDINGS_BUFFER_H_
« no previous file with comments | « mojo/public/bindings/array.h ('k') | mojo/public/bindings/callback.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698