Index: content/public/browser/file_descriptor_info.h |
diff --git a/content/public/browser/file_descriptor_info.h b/content/public/browser/file_descriptor_info.h |
index b0b2bdad7dc0c5baf15f872584e1e0c0cd953192..76c546e40b2934271daaac301a4155c0277577bb 100644 |
--- a/content/public/browser/file_descriptor_info.h |
+++ b/content/public/browser/file_descriptor_info.h |
@@ -41,6 +41,11 @@ class FileDescriptorInfo { |
virtual base::PlatformFile GetFDAt(size_t i) const = 0; |
virtual int GetIDAt(size_t i) const = 0; |
virtual size_t GetMappingSize() const = 0; |
+ |
+ // True if |this| has an ownership of |file|. |
+ virtual bool OwnsFD(base::PlatformFile file) const = 0; |
+ // Assuming |OwnsFD(file)|, release the ownership. |
+ virtual base::ScopedFD ReleaseFD(base::PlatformFile file) = 0; |
}; |
} |