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

Unified Diff: content/public/common/child_process_host.h

Issue 621613002: Refactoring: Make IPC::Channel::TakeClientFileDescriptor() a ScopedFD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing Mac build Created 6 years, 2 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/common/child_process_host.h
diff --git a/content/public/common/child_process_host.h b/content/public/common/child_process_host.h
index c8abedebd8b15a7e95b7b1e98c8be159984ad41e..d5b0e69394e045936a5ffbf718235da4f5d986c9 100644
--- a/content/public/common/child_process_host.h
+++ b/content/public/common/child_process_host.h
@@ -5,6 +5,7 @@
#ifndef CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_
#define CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_
+#include "base/files/scoped_file.h"
#include "build/build_config.h"
#include "content/common/content_export.h"
#include "ipc/ipc_channel_proxy.h"
@@ -98,7 +99,7 @@ class CONTENT_EXPORT ChildProcessHost : public IPC::Sender {
#if defined(OS_POSIX)
// See IPC::Channel::TakeClientFileDescriptor.
- virtual int TakeClientFileDescriptor() = 0;
+ virtual base::ScopedFD TakeClientFileDescriptor() = 0;
#endif
};

Powered by Google App Engine
This is Rietveld 408576698