OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 BASE_SCOPED_HANDLE_FIXME_H__ | 5 #ifndef BASE_SCOPED_HANDLE_H__ |
6 #define BASE_SCOPED_HANDLE_FIXME_H__ | 6 #define BASE_SCOPED_HANDLE_H__ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 | 9 |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
11 #include "base/scoped_handle_win.h" | 11 #include "base/scoped_handle_win.h" |
12 #endif | 12 #endif |
13 | 13 |
14 class ScopedStdioHandle { | 14 class ScopedStdioHandle { |
15 public: | 15 public: |
16 ScopedStdioHandle() | 16 ScopedStdioHandle() |
(...skipping 25 matching lines...) Expand all Loading... |
42 Close(); | 42 Close(); |
43 handle_ = newhandle; | 43 handle_ = newhandle; |
44 } | 44 } |
45 | 45 |
46 private: | 46 private: |
47 FILE* handle_; | 47 FILE* handle_; |
48 | 48 |
49 DISALLOW_EVIL_CONSTRUCTORS(ScopedStdioHandle); | 49 DISALLOW_EVIL_CONSTRUCTORS(ScopedStdioHandle); |
50 }; | 50 }; |
51 | 51 |
52 #endif // BASE_SCOPED_HANDLE_FIXME_H__ | 52 #endif // BASE_SCOPED_HANDLE_H__ |
OLD | NEW |