Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(944)

Unified Diff: content/public/browser/file_descriptor_info.h

Issue 909553003: Android: Get rid of extra dup()s on launching child processes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;
};
}

Powered by Google App Engine
This is Rietveld 408576698