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

Side by Side Diff: content/renderer/pepper/resource_creation_impl.cc

Issue 2411483002: Enable win32k lockdown for ppapi processes. (Closed)
Patch Set: readd entry Created 4 years, 2 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
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/renderer/pepper/resource_creation_impl.h" 5 #include "content/renderer/pepper/resource_creation_impl.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 #include "content/common/content_switches_internal.h" 8 #include "content/common/content_switches_internal.h"
9 #include "content/renderer/pepper/ppb_audio_impl.h" 9 #include "content/renderer/pepper/ppb_audio_impl.h"
10 #include "content/renderer/pepper/ppb_broker_impl.h" 10 #include "content/renderer/pepper/ppb_broker_impl.h"
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 const PP_Size* size, 144 const PP_Size* size,
145 PP_Bool init_to_zero) { 145 PP_Bool init_to_zero) {
146 #if defined(OS_WIN) 146 #if defined(OS_WIN)
147 // If Win32K lockdown mitigations are enabled for Windows 8 and beyond, 147 // If Win32K lockdown mitigations are enabled for Windows 8 and beyond,
148 // we use the SIMPLE image data type as the PLATFORM image data type 148 // we use the SIMPLE image data type as the PLATFORM image data type
149 // calls GDI functions to create DIB sections etc which fail in Win32K 149 // calls GDI functions to create DIB sections etc which fail in Win32K
150 // lockdown mode. 150 // lockdown mode.
151 // TODO(ananta) 151 // TODO(ananta)
152 // Look into whether this causes a loss of functionality. From cursory 152 // Look into whether this causes a loss of functionality. From cursory
153 // testing things seem to work well. 153 // testing things seem to work well.
154 if (IsWin32kRendererLockdownEnabled()) 154 if (IsWin32kLockdownEnabled())
155 return CreateImageDataSimple(instance, format, size, init_to_zero); 155 return CreateImageDataSimple(instance, format, size, init_to_zero);
156 #endif 156 #endif
157 return PPB_ImageData_Impl::Create(instance, 157 return PPB_ImageData_Impl::Create(instance,
158 ppapi::PPB_ImageData_Shared::PLATFORM, 158 ppapi::PPB_ImageData_Shared::PLATFORM,
159 format, 159 format,
160 *size, 160 *size,
161 init_to_zero); 161 init_to_zero);
162 } 162 }
163 163
164 PP_Resource ResourceCreationImpl::CreateImageDataSimple( 164 PP_Resource ResourceCreationImpl::CreateImageDataSimple(
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
367 wheel_ticks, 367 wheel_ticks,
368 scroll_by_page); 368 scroll_by_page);
369 } 369 }
370 370
371 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( 371 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate(
372 PP_Instance instance) { 372 PP_Instance instance) {
373 return 0; // Not supported in-process. 373 return 0; // Not supported in-process.
374 } 374 }
375 375
376 } // namespace content 376 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/pepper/content_renderer_pepper_host_factory.cc ('k') | testing/variations/fieldtrial_testing_config.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698