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

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

Issue 2389193004: Always use ChannelMojo for content child processes. (Closed)
Patch Set: Created 4 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
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/renderer/render_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 // The |flags| argument accepts one or more flags such as CHILD_ALLOW_SELF. 74 // The |flags| argument accepts one or more flags such as CHILD_ALLOW_SELF.
75 // Pass only CHILD_NORMAL if none of these special behaviors are required. 75 // Pass only CHILD_NORMAL if none of these special behaviors are required.
76 // 76 //
77 // On failure, returns an empty FilePath. 77 // On failure, returns an empty FilePath.
78 static base::FilePath GetChildPath(int flags); 78 static base::FilePath GetChildPath(int flags);
79 79
80 // Send the shutdown message to the child process. 80 // Send the shutdown message to the child process.
81 // Does not check with the delegate's CanShutdown. 81 // Does not check with the delegate's CanShutdown.
82 virtual void ForceShutdown() = 0; 82 virtual void ForceShutdown() = 0;
83 83
84 // Creates the IPC channel. Returns the channel id if it succeeded, an
85 // empty string otherwise
86 virtual std::string CreateChannel() = 0;
87
88 // Creates the IPC channel on top of Mojo. Returns the Mojo channel token if 84 // Creates the IPC channel on top of Mojo. Returns the Mojo channel token if
89 // succeeded, or an empty string on failure. 85 // succeeded, or an empty string on failure.
90 // 86 //
91 // DEPRECATED: Don't use this. Instead implement GetRemoteInterfaces() in the 87 // DEPRECATED: Don't use this. Instead implement GetRemoteInterfaces() in the
92 // delegate and use the CreateChannelMojo() version below. 88 // delegate and use the CreateChannelMojo() version below.
93 virtual std::string CreateChannelMojo(const std::string& child_token) = 0; 89 virtual std::string CreateChannelMojo(const std::string& child_token) = 0;
94 90
95 // Creates the IPC channel over a Mojo message pipe. The pipe connection is 91 // Creates the IPC channel over a Mojo message pipe. The pipe connection is
96 // brokered through the shell like any other service connection. 92 // brokered through the shell like any other service connection.
97 virtual void CreateChannelMojo() = 0; 93 virtual void CreateChannelMojo() = 0;
(...skipping 10 matching lines...) Expand all
108 104
109 #if defined(OS_POSIX) 105 #if defined(OS_POSIX)
110 // See IPC::Channel::TakeClientFileDescriptor. 106 // See IPC::Channel::TakeClientFileDescriptor.
111 virtual base::ScopedFD TakeClientFileDescriptor() = 0; 107 virtual base::ScopedFD TakeClientFileDescriptor() = 0;
112 #endif 108 #endif
113 }; 109 };
114 110
115 }; // namespace content 111 }; // namespace content
116 112
117 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_ 113 #endif // CONTENT_PUBLIC_COMMON_CHILD_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/gpu/gpu_child_thread.cc ('k') | content/renderer/render_thread_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698