Index: base/files/scoped_platform_handle_win.cc |
diff --git a/base/files/scoped_platform_handle_win.cc b/base/files/scoped_platform_handle_win.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..94235f27020a4adb9b54230461428d7dcf5886d7 |
--- /dev/null |
+++ b/base/files/scoped_platform_handle_win.cc |
@@ -0,0 +1,25 @@ |
+// Copyright 2017 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "base/files/scoped_platform_handle.h" |
+ |
+namespace base { |
+ |
+bool ScopedPlatformHandle::is_valid() const { |
+ return handle_.IsValid(); |
+} |
+ |
+void ScopedPlatformHandle::reset() { |
+ handle_.Close(); |
+} |
+ |
+ScopedPlatformHandle::HandleType ScopedPlatformHandle::get() const { |
+ return handle_.Get(); |
+} |
+ |
+ScopedPlatformHandle::HandleType ScopedPlatformHandle::release() { |
+ return handle_.Take(); |
+} |
+ |
+} // namespace base |