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

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

Issue 8870002: Apply renaming of ppapi shared stuff to new ppb_var shared code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix header guard Created 9 years 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 | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_var_unittest.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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/ppb_var_deprecated_proxy.h" 5 #include "ppapi/proxy/ppb_var_deprecated_proxy.h"
6 6
7 #include <stdlib.h> // For malloc 7 #include <stdlib.h> // For malloc
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/message_loop.h" 11 #include "base/message_loop.h"
12 #include "base/task.h" 12 #include "base/task.h"
13 #include "ppapi/c/dev/ppb_var_deprecated.h" 13 #include "ppapi/c/dev/ppb_var_deprecated.h"
14 #include "ppapi/c/pp_var.h" 14 #include "ppapi/c/pp_var.h"
15 #include "ppapi/c/ppb_var.h" 15 #include "ppapi/c/ppb_var.h"
16 #include "ppapi/c/ppb_core.h" 16 #include "ppapi/c/ppb_core.h"
17 #include "ppapi/proxy/host_dispatcher.h" 17 #include "ppapi/proxy/host_dispatcher.h"
18 #include "ppapi/proxy/plugin_dispatcher.h" 18 #include "ppapi/proxy/plugin_dispatcher.h"
19 #include "ppapi/proxy/plugin_globals.h" 19 #include "ppapi/proxy/plugin_globals.h"
20 #include "ppapi/proxy/plugin_resource_tracker.h" 20 #include "ppapi/proxy/plugin_resource_tracker.h"
21 #include "ppapi/proxy/plugin_var_tracker.h" 21 #include "ppapi/proxy/plugin_var_tracker.h"
22 #include "ppapi/proxy/ppapi_messages.h" 22 #include "ppapi/proxy/ppapi_messages.h"
23 #include "ppapi/proxy/ppp_class_proxy.h" 23 #include "ppapi/proxy/ppp_class_proxy.h"
24 #include "ppapi/proxy/serialized_var.h" 24 #include "ppapi/proxy/serialized_var.h"
25 #include "ppapi/shared_impl/ppb_var_impl.h" 25 #include "ppapi/shared_impl/ppb_var_shared.h"
26 #include "ppapi/shared_impl/var.h" 26 #include "ppapi/shared_impl/var.h"
27 27
28 namespace ppapi { 28 namespace ppapi {
29 namespace proxy { 29 namespace proxy {
30 30
31 namespace { 31 namespace {
32 32
33 // Used to do get the set-up information for calling a var object. If the 33 // Used to do get the set-up information for calling a var object. If the
34 // exception is set, returns NULL. Otherwise, computes the dispatcher for the 34 // exception is set, returns NULL. Otherwise, computes the dispatcher for the
35 // given var object. If the var is not a valid object, returns NULL and sets 35 // given var object. If the var is not a valid object, returns NULL and sets
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 dispatcher->local_get_interface()(PPB_VAR_DEPRECATED_INTERFACE)); 270 dispatcher->local_get_interface()(PPB_VAR_DEPRECATED_INTERFACE));
271 } 271 }
272 } 272 }
273 273
274 PPB_Var_Deprecated_Proxy::~PPB_Var_Deprecated_Proxy() { 274 PPB_Var_Deprecated_Proxy::~PPB_Var_Deprecated_Proxy() {
275 } 275 }
276 276
277 // static 277 // static
278 const InterfaceProxy::Info* PPB_Var_Deprecated_Proxy::GetInfo() { 278 const InterfaceProxy::Info* PPB_Var_Deprecated_Proxy::GetInfo() {
279 static const PPB_Var_Deprecated var_deprecated_interface = { 279 static const PPB_Var_Deprecated var_deprecated_interface = {
280 ppapi::PPB_Var_Impl::GetVarInterface1_0()->AddRef, 280 ppapi::PPB_Var_Shared::GetVarInterface1_0()->AddRef,
281 ppapi::PPB_Var_Impl::GetVarInterface1_0()->Release, 281 ppapi::PPB_Var_Shared::GetVarInterface1_0()->Release,
282 ppapi::PPB_Var_Impl::GetVarInterface1_0()->VarFromUtf8, 282 ppapi::PPB_Var_Shared::GetVarInterface1_0()->VarFromUtf8,
283 ppapi::PPB_Var_Impl::GetVarInterface1_0()->VarToUtf8, 283 ppapi::PPB_Var_Shared::GetVarInterface1_0()->VarToUtf8,
284 &HasProperty, 284 &HasProperty,
285 &HasMethod, 285 &HasMethod,
286 &GetProperty, 286 &GetProperty,
287 &EnumerateProperties, 287 &EnumerateProperties,
288 &SetProperty, 288 &SetProperty,
289 &RemoveProperty, 289 &RemoveProperty,
290 &Call, 290 &Call,
291 &Construct, 291 &Construct,
292 &IsInstanceOf, 292 &IsInstanceOf,
293 &CreateObject 293 &CreateObject
(...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after
505 505
506 void PPB_Var_Deprecated_Proxy::DoReleaseObject(int64 object_id) { 506 void PPB_Var_Deprecated_Proxy::DoReleaseObject(int64 object_id) {
507 PP_Var var; 507 PP_Var var;
508 var.type = PP_VARTYPE_OBJECT; 508 var.type = PP_VARTYPE_OBJECT;
509 var.value.as_id = object_id; 509 var.value.as_id = object_id;
510 ppb_var_impl_->Release(var); 510 ppb_var_impl_->Release(var);
511 } 511 }
512 512
513 } // namespace proxy 513 } // namespace proxy
514 } // namespace ppapi 514 } // namespace ppapi
OLDNEW
« no previous file with comments | « ppapi/proxy/interface_list.cc ('k') | ppapi/proxy/ppb_var_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698