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

Side by Side Diff: mojo/public/bindings/lib/buffer.cc

Issue 220243007: Mojo: Move mojo/public/bindings/lib to mojo/public/cpp/bindings/lib. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
OLDNEW
(Empty)
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.
4
5 #include "mojo/public/cpp/bindings/buffer.h"
6
7 #include <assert.h>
8
9 #include "mojo/public/cpp/environment/buffer_tls.h"
10 #include "mojo/public/cpp/system/macros.h"
11
12 namespace mojo {
13
14 Buffer::Buffer() {
15 previous_ = internal::SetCurrentBuffer(this);
16 }
17
18 Buffer::~Buffer() {
19 Buffer* buf MOJO_ALLOW_UNUSED = internal::SetCurrentBuffer(previous_);
20 assert(buf == this);
21 }
22
23 Buffer* Buffer::current() {
24 return internal::GetCurrentBuffer();
25 }
26
27 } // namespace mojo
OLDNEW
« no previous file with comments | « mojo/public/bindings/lib/bindings_serialization.cc ('k') | mojo/public/bindings/lib/callback_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698