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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CONTENT_SHELL_BROWSER_SHELL_NET_LOG_H_ 5 #ifndef CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_BPF_GPU_POLICY_LINUX_H_
6 #define CONTENT_SHELL_BROWSER_SHELL_NET_LOG_H_ 6 #define CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_BPF_GPU_POLICY_LINUX_H_
Jorge Lucangeli Obes 2013/12/12 21:37:21 WTF =P
jln (very slow on Chromium) 2013/12/12 22:15:14 ack.
7
8 #include <string>
9 7
10 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
11 #include "net/base/net_log_logger.h" 9 #include "content/common/sandbox_linux/sandbox_bpf_base_policy_linux.h"
12 10
13 namespace content { 11 namespace content {
14 12
15 class ShellNetLog : public net::NetLog { 13 // Get a suitable implementation of SandboxBPFBasePolicy for a GPU sandbox.
16 public: 14 scoped_ptr<SandboxBPFBasePolicy> GetGpuProcessSandbox();
17 ShellNetLog();
18 virtual ~ShellNetLog();
19
20 private:
21 scoped_ptr<net::NetLogLogger> net_log_logger_;
22
23 DISALLOW_COPY_AND_ASSIGN(ShellNetLog);
24 };
25 15
26 } // namespace content 16 } // namespace content
27 17
28 #endif // CONTENT_SHELL_BROWSER_SHELL_NET_LOG_H_ 18 #endif // CONTENT_COMMON_SANDBOX_LINUX_SANDBOX_BPF_GPU_POLICY_LINUX_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698