| OLD | NEW |
| 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/macros.h" |
| 10 #include "base/win/scoped_handle.h" | 11 #include "base/win/scoped_handle.h" |
| 11 | 12 |
| 12 namespace remoting { | 13 namespace remoting { |
| 13 | 14 |
| 14 class ScHandleTraits { | 15 class ScHandleTraits { |
| 15 public: | 16 public: |
| 16 typedef SC_HANDLE Handle; | 17 typedef SC_HANDLE Handle; |
| 17 | 18 |
| 18 // Closes the handle. | 19 // Closes the handle. |
| 19 static bool CloseHandle(SC_HANDLE handle) { | 20 static bool CloseHandle(SC_HANDLE handle) { |
| (...skipping 13 matching lines...) Expand all Loading... |
| 33 private: | 34 private: |
| 34 DISALLOW_IMPLICIT_CONSTRUCTORS(ScHandleTraits); | 35 DISALLOW_IMPLICIT_CONSTRUCTORS(ScHandleTraits); |
| 35 }; | 36 }; |
| 36 | 37 |
| 37 typedef base::win::GenericScopedHandle< | 38 typedef base::win::GenericScopedHandle< |
| 38 ScHandleTraits, base::win::DummyVerifierTraits> ScopedScHandle; | 39 ScHandleTraits, base::win::DummyVerifierTraits> ScopedScHandle; |
| 39 | 40 |
| 40 } // namespace remoting | 41 } // namespace remoting |
| 41 | 42 |
| 42 #endif // REMOTING_BASE_SCOPED_SC_HANDLE_WIN_H_ | 43 #endif // REMOTING_BASE_SCOPED_SC_HANDLE_WIN_H_ |
| OLD | NEW |