1 // Copyright 2014 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.
5 #ifndef MOJO_PUBLIC_BINDINGS_ALLOCATION_SCOPE_H_
6 #define MOJO_PUBLIC_BINDINGS_ALLOCATION_SCOPE_H_
8 #include "mojo/public/bindings/lib/scratch_buffer.h"
9 #include "mojo/public/system/macros.h"
13 class AllocationScope {
18 Buffer* buffer() { return &buffer_; }
21 internal::ScratchBuffer buffer_;
23 MOJO_DISALLOW_COPY_AND_ASSIGN(AllocationScope);
28 #endif // MOJO_PUBLIC_BINDINGS_ALLOCATION_SCOPE_H_