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_H_ | 5 #ifndef BASE_SCOPED_HANDLE_H_ |
6 #define BASE_SCOPED_HANDLE_H_ | 6 #define BASE_SCOPED_HANDLE_H_ |
7 | 7 |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 Close(); | 44 Close(); |
45 handle_ = newhandle; | 45 handle_ = newhandle; |
46 } | 46 } |
47 | 47 |
48 private: | 48 private: |
49 FILE* handle_; | 49 FILE* handle_; |
50 | 50 |
51 DISALLOW_EVIL_CONSTRUCTORS(ScopedStdioHandle); | 51 DISALLOW_EVIL_CONSTRUCTORS(ScopedStdioHandle); |
52 }; | 52 }; |
53 | 53 |
54 #endif // BASE_SCOPED_HANDLE_H_ | 54 #endif // BASE_SCOPED_HANDLE_H_ |
OLD | NEW |