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

Side by Side Diff: content/public/common/child_process_host.h

Issue 1959313002: Use ChannelMojo for the utility process. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mojo-all-processes
Patch Set: rebase Created 4 years, 6 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
« no previous file with comments | « content/common/child_process_host_impl.cc ('k') | content/utility/utility_thread_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/files/scoped_file.h" 10 #include "base/files/scoped_file.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 static base::FilePath GetChildPath(int flags); 74 static base::FilePath GetChildPath(int flags);
75 75
76 // Send the shutdown message to the child process. 76 // Send the shutdown message to the child process.
77 // Does not check with the delegate's CanShutdown. 77 // Does not check with the delegate's CanShutdown.
78 virtual void ForceShutdown() = 0; 78 virtual void ForceShutdown() = 0;
79 79
80 // Creates the IPC channel. Returns the channel id if it succeeded, an 80 // Creates the IPC channel. Returns the channel id if it succeeded, an
81 // empty string otherwise 81 // empty string otherwise
82 virtual std::string CreateChannel() = 0; 82 virtual std::string CreateChannel() = 0;
83 83
84 // Creates the IPC channel on top of Mojo. Returns the Mojo channel token if
85 // succeeded, or an empty string on failure.
86 virtual std::string CreateChannelMojo(const std::string& child_token) = 0;
87
84 // Returns true iff the IPC channel is currently being opened; 88 // Returns true iff the IPC channel is currently being opened;
85 virtual bool IsChannelOpening() = 0; 89 virtual bool IsChannelOpening() = 0;
86 90
87 // Adds an IPC message filter. A reference will be kept to the filter. 91 // Adds an IPC message filter. A reference will be kept to the filter.
88 virtual void AddFilter(IPC::MessageFilter* filter) = 0; 92 virtual void AddFilter(IPC::MessageFilter* filter) = 0;
89 93
90 #if defined(OS_POSIX) 94 #if defined(OS_POSIX)
91 // See IPC::Channel::TakeClientFileDescriptor. 95 // See IPC::Channel::TakeClientFileDescriptor.
92 virtual base::ScopedFD TakeClientFileDescriptor() = 0; 96 virtual base::ScopedFD TakeClientFileDescriptor() = 0;
93 #endif 97 #endif
94 }; 98 };
95 99
96 }; // namespace content 100 }; // namespace content
97 101
98 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_ 102 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/common/child_process_host_impl.cc ('k') | content/utility/utility_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698