| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_MEMORY_SCOPED_HANDLE_H_ | 5 #ifndef BASE_MEMORY_SCOPED_HANDLE_H_ |
| 6 #define BASE_MEMORY_SCOPED_HANDLE_H_ | 6 #define BASE_MEMORY_SCOPED_HANDLE_H_ |
| 7 #pragma once | |
| 8 | 7 |
| 9 #include <stdio.h> | 8 #include <stdio.h> |
| 10 | 9 |
| 11 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| 12 | 11 |
| 13 class ScopedStdioHandle { | 12 class ScopedStdioHandle { |
| 14 public: | 13 public: |
| 15 ScopedStdioHandle() | 14 ScopedStdioHandle() |
| 16 : handle_(NULL) { } | 15 : handle_(NULL) { } |
| 17 | 16 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 42 handle_ = newhandle; | 41 handle_ = newhandle; |
| 43 } | 42 } |
| 44 | 43 |
| 45 private: | 44 private: |
| 46 FILE* handle_; | 45 FILE* handle_; |
| 47 | 46 |
| 48 DISALLOW_COPY_AND_ASSIGN(ScopedStdioHandle); | 47 DISALLOW_COPY_AND_ASSIGN(ScopedStdioHandle); |
| 49 }; | 48 }; |
| 50 | 49 |
| 51 #endif // BASE_MEMORY_SCOPED_HANDLE_H_ | 50 #endif // BASE_MEMORY_SCOPED_HANDLE_H_ |
| OLD | NEW |