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

Unified Diff: chrome/browser/renderer_host/render_sandbox_host_linux.h

Issue 6532073: Move core pieces of browser\renderer_host to src\content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/renderer_host/render_sandbox_host_linux.h
===================================================================
--- chrome/browser/renderer_host/render_sandbox_host_linux.h (revision 75488)
+++ chrome/browser/renderer_host/render_sandbox_host_linux.h (working copy)
@@ -2,51 +2,11 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-// http://code.google.com/p/chromium/wiki/LinuxSandboxIPC
-
#ifndef CHROME_BROWSER_RENDERER_HOST_RENDER_SANDBOX_HOST_LINUX_H_
#define CHROME_BROWSER_RENDERER_HOST_RENDER_SANDBOX_HOST_LINUX_H_
#pragma once
-#include <string>
+// TODO(jam): remove this file when all files have been converted.
+#include "content/browser/renderer_host/render_sandbox_host_linux.h"
-#include "base/logging.h"
-
-template <typename T> struct DefaultSingletonTraits;
-
-// This is a singleton object which handles sandbox requests from the
-// renderers.
-class RenderSandboxHostLinux {
- public:
- // Returns the singleton instance.
- static RenderSandboxHostLinux* GetInstance();
-
- // Get the file descriptor which renderers should be given in order to signal
- // crashes to the browser.
- int GetRendererSocket() const {
- DCHECK(initialized_);
- return renderer_socket_;
- }
- pid_t pid() const {
- DCHECK(initialized_);
- return pid_;
- }
- void Init(const std::string& sandbox_path);
-
- private:
- friend struct DefaultSingletonTraits<RenderSandboxHostLinux>;
- // This object must be constructed on the main thread.
- RenderSandboxHostLinux();
- ~RenderSandboxHostLinux();
-
- // Whether Init() has been called yet.
- bool initialized_;
-
- int renderer_socket_;
- int childs_lifeline_fd_;
- pid_t pid_;
-
- DISALLOW_COPY_AND_ASSIGN(RenderSandboxHostLinux);
-};
-
#endif // CHROME_BROWSER_RENDERER_HOST_RENDER_SANDBOX_HOST_LINUX_H_

Powered by Google App Engine
This is Rietveld 408576698