| Index: webkit/plugins/ppapi/resource_creation_impl.cc
|
| diff --git a/webkit/plugins/ppapi/resource_creation_impl.cc b/webkit/plugins/ppapi/resource_creation_impl.cc
|
| index 4b2e364a5fba8d6aa14767d8fa749bf5fdc274f1..1f3943b27afdcde18f43fc504472c55e81b66ca2 100644
|
| --- a/webkit/plugins/ppapi/resource_creation_impl.cc
|
| +++ b/webkit/plugins/ppapi/resource_creation_impl.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright (c) 2011 The Chromium Authors. All rights reserved.
|
| +// Copyright (c) 2012 The Chromium Authors. All rights reserved.
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| @@ -7,6 +7,7 @@
|
| #include "ppapi/c/pp_size.h"
|
| #include "ppapi/shared_impl/ppb_audio_config_shared.h"
|
| #include "ppapi/shared_impl/ppb_input_event_shared.h"
|
| +#include "ppapi/shared_impl/ppb_resource_array_shared.h"
|
| #include "ppapi/shared_impl/var.h"
|
| #include "webkit/plugins/ppapi/common.h"
|
| #include "webkit/plugins/ppapi/ppb_audio_impl.h"
|
| @@ -37,6 +38,7 @@
|
|
|
| using ppapi::InputEventData;
|
| using ppapi::PPB_InputEvent_Shared;
|
| +using ppapi::PPB_ResourceArray_Shared;
|
| using ppapi::StringVar;
|
|
|
| namespace webkit {
|
| @@ -234,6 +236,15 @@ PP_Resource ResourceCreationImpl::CreateScrollbar(PP_Instance instance,
|
| return PPB_Scrollbar_Impl::Create(instance, PP_ToBool(vertical));
|
| }
|
|
|
| +PP_Resource ResourceCreationImpl::CreateResourceArray(
|
| + PP_Instance instance,
|
| + const PP_Resource elements[],
|
| + uint32_t size) {
|
| + PPB_ResourceArray_Shared* object = new PPB_ResourceArray_Shared(
|
| + PPB_ResourceArray_Shared::InitAsImpl(), instance, elements, size);
|
| + return object->GetReference();
|
| +}
|
| +
|
| PP_Resource ResourceCreationImpl::CreateTCPSocketPrivate(PP_Instance instance) {
|
| return PPB_TCPSocket_Private_Impl::CreateResource(instance);
|
| }
|
|
|