1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef BASE_FILES_SCOPED_PLATFORM_FILE_CLOSER_H_
6 #define BASE_FILES_SCOPED_PLATFORM_FILE_CLOSER_H_
8 #include "base/memory/scoped_ptr.h"
9 #include "base/platform_file.h"
15 struct BASE_EXPORT PlatformFileCloser
{
16 void operator()(PlatformFile
* file
) const;
19 } // namespace internal
21 typedef scoped_ptr
<PlatformFile
, internal::PlatformFileCloser
>
22 ScopedPlatformFileCloser
;
26 #endif // BASE_FILES_SCOPED_PLATFORM_FILE_CLOSER_H_