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

Side by Side 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ 5 #ifndef CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_
6 #define CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ 6 #define CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_
7 7
8 #include "base/files/scoped_file.h"
8 #include "build/build_config.h" 9 #include "build/build_config.h"
9 #include "content/common/content_export.h" 10 #include "content/common/content_export.h"
10 #include "ipc/ipc_channel_proxy.h" 11 #include "ipc/ipc_channel_proxy.h"
11 12
12 namespace base { 13 namespace base {
13 class FilePath; 14 class FilePath;
14 } 15 }
15 16
16 namespace IPC { 17 namespace IPC {
17 class MessageFilter; 18 class MessageFilter;
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 virtual std::string CreateChannel() = 0; 92 virtual std::string CreateChannel() = 0;
92 93
93 // Returns true iff the IPC channel is currently being opened; 94 // Returns true iff the IPC channel is currently being opened;
94 virtual bool IsChannelOpening() = 0; 95 virtual bool IsChannelOpening() = 0;
95 96
96 // Adds an IPC message filter. A reference will be kept to the filter. 97 // Adds an IPC message filter. A reference will be kept to the filter.
97 virtual void AddFilter(IPC::MessageFilter* filter) = 0; 98 virtual void AddFilter(IPC::MessageFilter* filter) = 0;
98 99
99 #if defined(OS_POSIX) 100 #if defined(OS_POSIX)
100 // See IPC::Channel::TakeClientFileDescriptor. 101 // See IPC::Channel::TakeClientFileDescriptor.
101 virtual int TakeClientFileDescriptor() = 0; 102 virtual base::ScopedFD TakeClientFileDescriptor() = 0;
102 #endif 103 #endif
103 }; 104 };
104 105
105 }; // namespace content 106 }; // namespace content
106 107
107 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_ 108 #endif // CONTENT_PULIC_COMMON_CHILD_PROCESS_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698