1 // Copyright 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.
5 #include "mojo/public/bindings/buffer.h"
9 #include "mojo/public/environment/buffer_tls.h"
10 #include "mojo/public/system/macros.h"
15 previous_ = internal::SetCurrentBuffer(this);
19 Buffer* buf MOJO_ALLOW_UNUSED = internal::SetCurrentBuffer(previous_);
23 Buffer* Buffer::current() {
24 return internal::GetCurrentBuffer();