| OLD | NEW |
| 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 // https://chromium.googlesource.com/chromium/src/+/master/docs/linux_sandbox_ip
c.md | 5 // https://chromium.googlesource.com/chromium/src/+/master/docs/linux_sandbox_ip
c.md |
| 6 | 6 |
| 7 #ifndef CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_LINUX_H_ | 7 #ifndef CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_LINUX_H_ |
| 8 #define CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_LINUX_H_ | 8 #define CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_LINUX_H_ |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <vector> | 11 #include <vector> |
| 12 | 12 |
| 13 #include "base/files/scoped_file.h" | 13 #include "base/files/scoped_file.h" |
| 14 #include "base/macros.h" | 14 #include "base/macros.h" |
| 15 #include "base/pickle.h" | 15 #include "base/pickle.h" |
| 16 #include "base/threading/simple_thread.h" | 16 #include "base/threading/simple_thread.h" |
| 17 #include "skia/ext/skia_utils_base.h" | 17 |
| 18 class SkString; |
| 18 | 19 |
| 19 namespace content { | 20 namespace content { |
| 20 | 21 |
| 21 class SandboxIPCHandler : public base::DelegateSimpleThread::Delegate { | 22 class SandboxIPCHandler : public base::DelegateSimpleThread::Delegate { |
| 22 public: | 23 public: |
| 23 // lifeline_fd: the read end of a pipe which the main thread holds | 24 // lifeline_fd: the read end of a pipe which the main thread holds |
| 24 // the other end of. | 25 // the other end of. |
| 25 // browser_socket: the browser's end of the sandbox IPC socketpair. | 26 // browser_socket: the browser's end of the sandbox IPC socketpair. |
| 26 SandboxIPCHandler(int lifeline_fd, int browser_socket); | 27 SandboxIPCHandler(int lifeline_fd, int browser_socket); |
| 27 ~SandboxIPCHandler() override; | 28 ~SandboxIPCHandler() override; |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 const int lifeline_fd_; | 69 const int lifeline_fd_; |
| 69 const int browser_socket_; | 70 const int browser_socket_; |
| 70 std::vector<SkString> paths_; | 71 std::vector<SkString> paths_; |
| 71 | 72 |
| 72 DISALLOW_COPY_AND_ASSIGN(SandboxIPCHandler); | 73 DISALLOW_COPY_AND_ASSIGN(SandboxIPCHandler); |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace content | 76 } // namespace content |
| 76 | 77 |
| 77 #endif // CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_LINUX_H_ | 78 #endif // CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_LINUX_H_ |
| OLD | NEW |