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

Side by Side Diff: remoting/base/scoped_sc_handle_win.h

Issue 10453082: Base: Add a handle verifier to ScopedHandle. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
« base/win/scoped_handle.cc ('K') | « printing/backend/win_helper.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef REMOTING_BASE_SCOPED_SC_HANDLE_WIN_H_ 5 #ifndef REMOTING_BASE_SCOPED_SC_HANDLE_WIN_H_
6 #define REMOTING_BASE_SCOPED_SC_HANDLE_WIN_H_ 6 #define REMOTING_BASE_SCOPED_SC_HANDLE_WIN_H_
7 7
8 #include <windows.h> 8 #include <windows.h>
9 9
10 #include "base/win/scoped_handle.h" 10 #include "base/win/scoped_handle.h"
(...skipping 16 matching lines...) Expand all
27 27
28 // Returns NULL handle value. 28 // Returns NULL handle value.
29 static SC_HANDLE NullHandle() { 29 static SC_HANDLE NullHandle() {
30 return NULL; 30 return NULL;
31 } 31 }
32 32
33 private: 33 private:
34 DISALLOW_IMPLICIT_CONSTRUCTORS(ScHandleTraits); 34 DISALLOW_IMPLICIT_CONSTRUCTORS(ScHandleTraits);
35 }; 35 };
36 36
37 typedef base::win::GenericScopedHandle<ScHandleTraits> ScopedScHandle; 37 typedef base::win::GenericScopedHandle<
38 ScHandleTraits, base::win::DummyVerifierTraits> ScopedScHandle;
38 39
39 } // namespace remoting 40 } // namespace remoting
40 41
41 #endif // REMOTING_BASE_SCOPED_SC_HANDLE_WIN_H_ 42 #endif // REMOTING_BASE_SCOPED_SC_HANDLE_WIN_H_
OLDNEW
« base/win/scoped_handle.cc ('K') | « printing/backend/win_helper.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698