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

Unified Diff: content/common/sandbox_linux/sandbox_bpf_gpu_policy_linux.h

Issue 99133015: Linux Sandbox: split the GPU policies to their own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup InitGpuBrokerProcess. Created 7 years 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: content/common/sandbox_linux/sandbox_bpf_gpu_policy_linux.h
diff --git a/content/shell/browser/shell_net_log.h b/content/common/sandbox_linux/sandbox_bpf_gpu_policy_linux.h
similarity index 37%
copy from content/shell/browser/shell_net_log.h
copy to content/common/sandbox_linux/sandbox_bpf_gpu_policy_linux.h
index 9846917aed1bacf0dd5040b20cc22a4b06237ed1..ee50ea708c17084a09db8da1852319ec93a2b3a9 100644
--- a/content/shell/browser/shell_net_log.h
+++ b/content/common/sandbox_linux/sandbox_bpf_gpu_policy_linux.h
@@ -2,27 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CONTENT_SHELL_BROWSER_SHELL_NET_LOG_H_
-#define CONTENT_SHELL_BROWSER_SHELL_NET_LOG_H_
Jorge Lucangeli Obes 2013/12/12 21:37:21 WTF =P
jln (very slow on Chromium) 2013/12/12 22:15:14 ack.
-
-#include <string>
+#ifndef CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_BPF_GPU_POLICY_LINUX_H_
+#define CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_BPF_GPU_POLICY_LINUX_H_
#include "base/memory/scoped_ptr.h"
-#include "net/base/net_log_logger.h"
+#include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h"
namespace content {
-class ShellNetLog : public net::NetLog {
- public:
- ShellNetLog();
- virtual ~ShellNetLog();
-
- private:
- scoped_ptr<net::NetLogLogger> net_log_logger_;
-
- DISALLOW_COPY_AND_ASSIGN(ShellNetLog);
-};
+// Get a suitable implementation of SandboxBPFBasePolicy for a GPU sandbox.
+scoped_ptr<SandboxBPFBasePolicy> GetGpuProcessSandbox();
} // namespace content
-#endif // CONTENT_SHELL_BROWSER_SHELL_NET_LOG_H_
+#endif // CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_BPF_GPU_POLICY_LINUX_H_

Powered by Google App Engine
This is Rietveld 408576698