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

Side by Side Diff: chrome/browser/renderer_host/render_sandbox_host_linux.h

Issue 112074: Linux: Add support for chrooted renderers. (Closed)
Patch Set: Created 11 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
OLDNEW
(Empty)
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // http://code.google.com/p/chromium/wiki/LinuxSandboxIPC
6
7 #ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_SANDBOX_HOST_LINUX_H_
8 #define CHROME_BROWSER_RENDERER_HOST_RENDER_SANDBOX_HOST_LINUX_H_
9
10 #include "base/singleton.h"
11 #include "base/thread.h"
12 #include "base/message_loop.h"
13
14 // This is a singleton object which handles sandbox requests from the
15 // renderers.
16 class RenderSandboxHostLinux {
17 public:
18 // Get the file descriptor which renderers should be given in order to signal
19 // crashes to the browser.
20 int GetRendererSocket() const { return renderer_socket_; }
21
22 private:
23 friend struct DefaultSingletonTraits<RenderSandboxHostLinux>;
24 // This object must be constructed on the main thread.
25 RenderSandboxHostLinux();
26 ~RenderSandboxHostLinux();
27
28 int renderer_socket_;
29 int childs_lifeline_fd_;
30
31 DISALLOW_EVIL_CONSTRUCTORS(RenderSandboxHostLinux);
32 };
33
34 #endif // CHROME_BROWSER_RENDERER_HOST_RENDER_SANDBOX_HOST_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698