| 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 // 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_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 <vector> | 10 #include <vector> |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 void EnsureWebKitInitialized(); | 32 void EnsureWebKitInitialized(); |
| 33 | 33 |
| 34 int FindOrAddPath(const SkString& path); | 34 int FindOrAddPath(const SkString& path); |
| 35 | 35 |
| 36 void HandleRequestFromRenderer(int fd); | 36 void HandleRequestFromRenderer(int fd); |
| 37 | 37 |
| 38 void HandleFontMatchRequest(int fd, | 38 void HandleFontMatchRequest(int fd, |
| 39 base::PickleIterator iter, | 39 base::PickleIterator iter, |
| 40 const std::vector<base::ScopedFD*>& fds); | 40 const std::vector<base::ScopedFD>& fds); |
| 41 | 41 |
| 42 void HandleFontOpenRequest(int fd, | 42 void HandleFontOpenRequest(int fd, |
| 43 base::PickleIterator iter, | 43 base::PickleIterator iter, |
| 44 const std::vector<base::ScopedFD*>& fds); | 44 const std::vector<base::ScopedFD>& fds); |
| 45 | 45 |
| 46 void HandleGetFallbackFontForChar(int fd, | 46 void HandleGetFallbackFontForChar(int fd, |
| 47 base::PickleIterator iter, | 47 base::PickleIterator iter, |
| 48 const std::vector<base::ScopedFD*>& fds); | 48 const std::vector<base::ScopedFD>& fds); |
| 49 | 49 |
| 50 void HandleGetStyleForStrike(int fd, | 50 void HandleGetStyleForStrike(int fd, |
| 51 base::PickleIterator iter, | 51 base::PickleIterator iter, |
| 52 const std::vector<base::ScopedFD*>& fds); | 52 const std::vector<base::ScopedFD>& fds); |
| 53 | 53 |
| 54 void HandleLocaltime(int fd, | 54 void HandleLocaltime(int fd, |
| 55 base::PickleIterator iter, | 55 base::PickleIterator iter, |
| 56 const std::vector<base::ScopedFD*>& fds); | 56 const std::vector<base::ScopedFD>& fds); |
| 57 | 57 |
| 58 void HandleMakeSharedMemorySegment(int fd, | 58 void HandleMakeSharedMemorySegment(int fd, |
| 59 base::PickleIterator iter, | 59 base::PickleIterator iter, |
| 60 const std::vector<base::ScopedFD*>& fds); | 60 const std::vector<base::ScopedFD>& fds); |
| 61 | 61 |
| 62 void HandleMatchWithFallback(int fd, | 62 void HandleMatchWithFallback(int fd, |
| 63 base::PickleIterator iter, | 63 base::PickleIterator iter, |
| 64 const std::vector<base::ScopedFD*>& fds); | 64 const std::vector<base::ScopedFD>& fds); |
| 65 | 65 |
| 66 void SendRendererReply(const std::vector<base::ScopedFD*>& fds, | 66 void SendRendererReply(const std::vector<base::ScopedFD>& fds, |
| 67 const base::Pickle& reply, | 67 const base::Pickle& reply, |
| 68 int reply_fd); | 68 int reply_fd); |
| 69 | 69 |
| 70 const int lifeline_fd_; | 70 const int lifeline_fd_; |
| 71 const int browser_socket_; | 71 const int browser_socket_; |
| 72 scoped_ptr<BlinkPlatformImpl> blink_platform_impl_; | 72 scoped_ptr<BlinkPlatformImpl> blink_platform_impl_; |
| 73 SkTDArray<SkString*> paths_; | 73 SkTDArray<SkString*> paths_; |
| 74 | 74 |
| 75 DISALLOW_COPY_AND_ASSIGN(SandboxIPCHandler); | 75 DISALLOW_COPY_AND_ASSIGN(SandboxIPCHandler); |
| 76 }; | 76 }; |
| 77 | 77 |
| 78 } // namespace content | 78 } // namespace content |
| 79 | 79 |
| 80 #endif // CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_LINUX_H_ | 80 #endif // CONTENT_BROWSER_RENDERER_HOST_SANDBOX_IPC_LINUX_H_ |
| OLD | NEW |