Simple Cache: Enable by default on Android developer builds
[chromium-blink-merge.git] / base / files / scoped_platform_file_closer.h
blob8fe4a2851180edcb708e31c76c5fda57c7fb9156
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"
11 namespace base {
13 namespace internal {
15 struct BASE_EXPORT PlatformFileCloser {
16 void operator()(PlatformFile* file) const;
19 } // namespace internal
21 typedef scoped_ptr<PlatformFile, internal::PlatformFileCloser>
22 ScopedPlatformFileCloser;
24 } // namespace base
26 #endif // BASE_FILES_SCOPED_PLATFORM_FILE_CLOSER_H_