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

Side by Side Diff: mojo/public/utility/scoped_handle.h

Issue 56553002: Say "noto" goto (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: eru? Created 7 years, 1 month 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
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/public/utility/scoped_handle.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef MOJO_PUBLIC_UTILITY_SCOPED_HANDLE_H_
6 #define MOJO_PUBLIC_UTILITY_SCOPED_HANDLE_H_
7
8 #include "mojo/public/system/core.h"
9
10 namespace mojo {
11
12 // Closes handle_ when deleted.
13 // This probably wants tons of improvements, but those can be made as needed.
14 class ScopedHandle {
15 public:
16 ScopedHandle(Handle handle);
17 ~ScopedHandle();
18 Handle get() const { return handle_; }
19 Handle Release();
20
21 private:
22 Handle handle_;
23 };
24
25 } // namespace mojo
26
27 #endif // MOJO_PUBLIC_SYSTEM_SCOPED_HANDLE_H_
OLDNEW
« no previous file with comments | « mojo/mojo.gyp ('k') | mojo/public/utility/scoped_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698