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

Side by Side Diff: content/browser/renderer_host/sandbox_ipc_linux.h

Issue 240463005: Stop using chrome-sandbox to determine real pids (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix an embarassing number of compile errors Created 6 years, 8 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // http://code.google.com/p/chromium/wiki/LinuxSandboxIPC 5 // http://code.google.com/p/chromium/wiki/LinuxSandboxIPC
6 6
7 #ifndef CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_H_ 7 #ifndef CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_H_
8 #define CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_H_ 8 #define CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_H_
9 9
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/memory/scoped_ptr.h" 12 #include "base/memory/scoped_ptr.h"
13 #include "base/pickle.h" 13 #include "base/pickle.h"
14 #include "base/process/process_handle.h"
14 #include "content/child/blink_platform_impl.h" 15 #include "content/child/blink_platform_impl.h"
15 #include "skia/ext/skia_utils_base.h" 16 #include "skia/ext/skia_utils_base.h"
16 17
17 namespace content { 18 namespace content {
18 19
19 class SandboxIPCProcess { 20 class SandboxIPCProcess {
20 public: 21 public:
21 // lifeline_fd: this is the read end of a pipe which the browser process 22 // lifeline_fd: this is the read end of a pipe which the browser process
22 // holds the other end of. If the browser process dies, its descriptors are 23 // holds the other end of. If the browser process dies, its descriptors are
23 // closed and we will noticed an EOF on the pipe. That's our signal to exit. 24 // closed and we will noticed an EOF on the pipe. That's our signal to exit.
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 void HandleMakeSharedMemorySegment(int fd, 73 void HandleMakeSharedMemorySegment(int fd,
73 const Pickle& pickle, 74 const Pickle& pickle,
74 PickleIterator iter, 75 PickleIterator iter,
75 std::vector<int>& fds); 76 std::vector<int>& fds);
76 77
77 void HandleMatchWithFallback(int fd, 78 void HandleMatchWithFallback(int fd,
78 const Pickle& pickle, 79 const Pickle& pickle,
79 PickleIterator iter, 80 PickleIterator iter,
80 std::vector<int>& fds); 81 std::vector<int>& fds);
81 82
83 void HandleGetRealPid(int fd,
84 const Pickle& pickle,
85 PickleIterator iter,
86 std::vector<int>& fds,
87 base::ProcessId sender_pid);
88
82 void SendRendererReply(const std::vector<int>& fds, 89 void SendRendererReply(const std::vector<int>& fds,
83 const Pickle& reply, 90 const Pickle& reply,
84 int reply_fd); 91 int reply_fd);
85 92
86 const int lifeline_fd_; 93 const int lifeline_fd_;
87 const int browser_socket_; 94 const int browser_socket_;
88 std::vector<std::string> sandbox_cmd_; 95 std::vector<std::string> sandbox_cmd_;
89 scoped_ptr<BlinkPlatformImpl> webkit_platform_support_; 96 scoped_ptr<BlinkPlatformImpl> webkit_platform_support_;
90 SkTDArray<SkString*> paths_; 97 SkTDArray<SkString*> paths_;
91 98
92 DISALLOW_COPY_AND_ASSIGN(SandboxIPCProcess); 99 DISALLOW_COPY_AND_ASSIGN(SandboxIPCProcess);
93 }; 100 };
94 101
95 } // namespace content 102 } // namespace content
96 103
97 #endif // CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_H_ 104 #endif // CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_H_
OLDNEW
« no previous file with comments | « components/nacl/loader/nacl_helper_linux.cc ('k') | content/browser/renderer_host/sandbox_ipc_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698