| OLD | NEW |
| 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 "content/common/content_switches_internal.h" | 7 #include "content/common/content_switches_internal.h" |
| 8 #include "content/renderer/pepper/ppb_audio_impl.h" | 8 #include "content/renderer/pepper/ppb_audio_impl.h" |
| 9 #include "content/renderer/pepper/ppb_broker_impl.h" | 9 #include "content/renderer/pepper/ppb_broker_impl.h" |
| 10 #include "content/renderer/pepper/ppb_buffer_impl.h" | 10 #include "content/renderer/pepper/ppb_buffer_impl.h" |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 | 121 |
| 122 PP_Resource ResourceCreationImpl::CreateHostResolver(PP_Instance instance) { | 122 PP_Resource ResourceCreationImpl::CreateHostResolver(PP_Instance instance) { |
| 123 return 0; // Not supported in-process. | 123 return 0; // Not supported in-process. |
| 124 } | 124 } |
| 125 | 125 |
| 126 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( | 126 PP_Resource ResourceCreationImpl::CreateHostResolverPrivate( |
| 127 PP_Instance instance) { | 127 PP_Instance instance) { |
| 128 return 0; // Not supported in-process. | 128 return 0; // Not supported in-process. |
| 129 } | 129 } |
| 130 | 130 |
| 131 PP_Resource ResourceCreationImpl::CreateImageCapturePrivate( |
| 132 PP_Instance instance) { |
| 133 return 0; // Not supported in-process. |
| 134 } |
| 135 |
| 131 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, | 136 PP_Resource ResourceCreationImpl::CreateImageData(PP_Instance instance, |
| 132 PP_ImageDataFormat format, | 137 PP_ImageDataFormat format, |
| 133 const PP_Size* size, | 138 const PP_Size* size, |
| 134 PP_Bool init_to_zero) { | 139 PP_Bool init_to_zero) { |
| 135 #if defined(OS_WIN) | 140 #if defined(OS_WIN) |
| 136 // If Win32K lockdown mitigations are enabled for Windows 8 and beyond, | 141 // If Win32K lockdown mitigations are enabled for Windows 8 and beyond, |
| 137 // we use the SIMPLE image data type as the PLATFORM image data type | 142 // we use the SIMPLE image data type as the PLATFORM image data type |
| 138 // calls GDI functions to create DIB sections etc which fail in Win32K | 143 // calls GDI functions to create DIB sections etc which fail in Win32K |
| 139 // lockdown mode. | 144 // lockdown mode. |
| 140 // TODO(ananta) | 145 // TODO(ananta) |
| (...skipping 216 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 357 wheel_ticks, | 362 wheel_ticks, |
| 358 scroll_by_page); | 363 scroll_by_page); |
| 359 } | 364 } |
| 360 | 365 |
| 361 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( | 366 PP_Resource ResourceCreationImpl::CreateX509CertificatePrivate( |
| 362 PP_Instance instance) { | 367 PP_Instance instance) { |
| 363 return 0; // Not supported in-process. | 368 return 0; // Not supported in-process. |
| 364 } | 369 } |
| 365 | 370 |
| 366 } // namespace content | 371 } // namespace content |
| OLD | NEW |