- add sources.
[platform/framework/web/crosswalk.git] / src / base / files / scoped_platform_file_closer.h
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.
4
5 #ifndef BASE_FILES_SCOPED_PLATFORM_FILE_CLOSER_H_
6 #define BASE_FILES_SCOPED_PLATFORM_FILE_CLOSER_H_
7
8 #include "base/memory/scoped_ptr.h"
9 #include "base/platform_file.h"
10
11 namespace base {
12
13 namespace internal {
14
15 struct BASE_EXPORT PlatformFileCloser {
16   void operator()(PlatformFile* file) const;
17 };
18
19 }  // namespace internal
20
21 typedef scoped_ptr<PlatformFile, internal::PlatformFileCloser>
22     ScopedPlatformFileCloser;
23
24 }  // namespace base
25
26 #endif  // BASE_FILES_SCOPED_PLATFORM_FILE_CLOSER_H_