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

Side by Side Diff: content/browser/gpu/gpu_process_host.cc

Issue 10105009: Apply an initial seccomp filter policy for Pepper Flash. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #include "content/browser/gpu/gpu_process_host.h" 5 #include "content/browser/gpu/gpu_process_host.h"
6 6
7 #include "base/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/bind_helpers.h" 9 #include "base/bind_helpers.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 687 matching lines...) Expand 10 before | Expand all | Expand 10 after
698 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED) 698 if (kind_ == GPU_PROCESS_KIND_UNSANDBOXED)
699 cmd_line->AppendSwitch(switches::kDisableGpuSandbox); 699 cmd_line->AppendSwitch(switches::kDisableGpuSandbox);
700 700
701 // Propagate relevant command line switches. 701 // Propagate relevant command line switches.
702 static const char* const kSwitchNames[] = { 702 static const char* const kSwitchNames[] = {
703 switches::kDisableBreakpad, 703 switches::kDisableBreakpad,
704 switches::kDisableGLMultisampling, 704 switches::kDisableGLMultisampling,
705 switches::kDisableGpuDriverBugWorkarounds, 705 switches::kDisableGpuDriverBugWorkarounds,
706 switches::kDisableGpuSandbox, 706 switches::kDisableGpuSandbox,
707 switches::kReduceGpuSandbox, 707 switches::kReduceGpuSandbox,
708 switches::kDisableSeccompFilterSandbox,
708 switches::kDisableGpuVsync, 709 switches::kDisableGpuVsync,
709 switches::kDisableGpuWatchdog, 710 switches::kDisableGpuWatchdog,
710 switches::kDisableImageTransportSurface, 711 switches::kDisableImageTransportSurface,
711 switches::kDisableLogging, 712 switches::kDisableLogging,
712 switches::kEnableLogging, 713 switches::kEnableLogging,
713 #if defined(OS_MACOSX) 714 #if defined(OS_MACOSX)
714 switches::kEnableSandboxLogging, 715 switches::kEnableSandboxLogging,
715 #endif 716 #endif
716 switches::kGpuNoContextLost, 717 switches::kGpuNoContextLost,
717 switches::kGpuStartupDialog, 718 switches::kGpuStartupDialog,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
774 const IPC::ChannelHandle& channel_handle, 775 const IPC::ChannelHandle& channel_handle,
775 base::ProcessHandle renderer_process_for_gpu, 776 base::ProcessHandle renderer_process_for_gpu,
776 const content::GPUInfo& gpu_info) { 777 const content::GPUInfo& gpu_info) {
777 callback.Run(channel_handle, renderer_process_for_gpu, gpu_info); 778 callback.Run(channel_handle, renderer_process_for_gpu, gpu_info);
778 } 779 }
779 780
780 void GpuProcessHost::CreateCommandBufferError( 781 void GpuProcessHost::CreateCommandBufferError(
781 const CreateCommandBufferCallback& callback, int32 route_id) { 782 const CreateCommandBufferCallback& callback, int32 route_id) {
782 callback.Run(route_id); 783 callback.Run(route_id);
783 } 784 }
OLDNEW
« no previous file with comments | « no previous file | content/browser/ppapi_plugin_process_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698