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

Side by Side Diff: ppapi/proxy/resource_creation_proxy.cc

Issue 9455092: HostResolver is exposed to plugin. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Added shared declaration of GetPPB_HostResolver_Private_0_1_Thunk. Created 8 years, 9 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 "ppapi/proxy/resource_creation_proxy.h" 5 #include "ppapi/proxy/resource_creation_proxy.h"
6 6
7 #include "ppapi/c/pp_errors.h" 7 #include "ppapi/c/pp_errors.h"
8 #include "ppapi/c/pp_size.h" 8 #include "ppapi/c/pp_size.h"
9 #include "ppapi/c/trusted/ppb_image_data_trusted.h" 9 #include "ppapi/c/trusted/ppb_image_data_trusted.h"
10 #include "ppapi/proxy/plugin_dispatcher.h" 10 #include "ppapi/proxy/plugin_dispatcher.h"
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 return PPB_Flash_NetConnector_Proxy::CreateProxyResource(instance); 164 return PPB_Flash_NetConnector_Proxy::CreateProxyResource(instance);
165 } 165 }
166 166
167 PP_Resource ResourceCreationProxy::CreateGraphics2D(PP_Instance instance, 167 PP_Resource ResourceCreationProxy::CreateGraphics2D(PP_Instance instance,
168 const PP_Size& size, 168 const PP_Size& size,
169 PP_Bool is_always_opaque) { 169 PP_Bool is_always_opaque) {
170 return PPB_Graphics2D_Proxy::CreateProxyResource(instance, size, 170 return PPB_Graphics2D_Proxy::CreateProxyResource(instance, size,
171 is_always_opaque); 171 is_always_opaque);
172 } 172 }
173 173
174 PP_Resource ResourceCreationProxy::CreateHostResolverPrivate(
175 PP_Instance instance) {
176 // TODO (ygorshenin): implement this.
177 return static_cast<PP_Resource>(0);
178 }
179
174 PP_Resource ResourceCreationProxy::CreateImageData(PP_Instance instance, 180 PP_Resource ResourceCreationProxy::CreateImageData(PP_Instance instance,
175 PP_ImageDataFormat format, 181 PP_ImageDataFormat format,
176 const PP_Size& size, 182 const PP_Size& size,
177 PP_Bool init_to_zero) { 183 PP_Bool init_to_zero) {
178 return PPB_ImageData_Proxy::CreateProxyResource(instance, format, size, 184 return PPB_ImageData_Proxy::CreateProxyResource(instance, format, size,
179 init_to_zero); 185 init_to_zero);
180 } 186 }
181 187
182 PP_Resource ResourceCreationProxy::CreateKeyboardInputEvent( 188 PP_Resource ResourceCreationProxy::CreateKeyboardInputEvent(
183 PP_Instance instance, 189 PP_Instance instance,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
348 bool ResourceCreationProxy::Send(IPC::Message* msg) { 354 bool ResourceCreationProxy::Send(IPC::Message* msg) {
349 return dispatcher()->Send(msg); 355 return dispatcher()->Send(msg);
350 } 356 }
351 357
352 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) { 358 bool ResourceCreationProxy::OnMessageReceived(const IPC::Message& msg) {
353 return false; 359 return false;
354 } 360 }
355 361
356 } // namespace proxy 362 } // namespace proxy
357 } // namespace ppapi 363 } // namespace ppapi
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698