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

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: Move scoped_handle into new mojo_utility static library 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 #include "mojo/public/system/system_export.h"
darin (slow to review) 2013/11/01 23:05:13 LGTM w/ this line and the MOJO_SYSTEM_EXPORT remov
10
11 namespace mojo {
12
13 // Closes handle_ when deleted.
14 // This probably wants tons of improvements, but those can be made as needed.
15 class MOJO_SYSTEM_EXPORT ScopedHandle {
darin (slow to review) 2013/11/01 23:04:52 nit: no need for the export. this is a static libr
16 public:
17 ScopedHandle(Handle handle);
18 ~ScopedHandle();
19 Handle get() const { return handle_; }
20 Handle Release();
21
22 private:
23 Handle handle_;
24 };
25
26 } // namespace mojo
27
28 #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