| 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 "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" |
| (...skipping 267 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 278 | 278 |
| 279 InterfaceProxy* CreateVarDeprecatedProxy(Dispatcher* dispatcher) { | 279 InterfaceProxy* CreateVarDeprecatedProxy(Dispatcher* dispatcher) { |
| 280 return new PPB_Var_Deprecated_Proxy(dispatcher ); | 280 return new PPB_Var_Deprecated_Proxy(dispatcher ); |
| 281 } | 281 } |
| 282 | 282 |
| 283 } // namespace | 283 } // namespace |
| 284 | 284 |
| 285 PPB_Var_Deprecated_Proxy::PPB_Var_Deprecated_Proxy( | 285 PPB_Var_Deprecated_Proxy::PPB_Var_Deprecated_Proxy( |
| 286 Dispatcher* dispatcher) | 286 Dispatcher* dispatcher) |
| 287 : InterfaceProxy(dispatcher), | 287 : InterfaceProxy(dispatcher), |
| 288 task_factory_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), | 288 task_factory_(this), |
| 289 ppb_var_impl_(NULL) { | 289 ppb_var_impl_(NULL) { |
| 290 if (!dispatcher->IsPlugin()) { | 290 if (!dispatcher->IsPlugin()) { |
| 291 ppb_var_impl_ = static_cast<const PPB_Var_Deprecated*>( | 291 ppb_var_impl_ = static_cast<const PPB_Var_Deprecated*>( |
| 292 dispatcher->local_get_interface()(PPB_VAR_DEPRECATED_INTERFACE)); | 292 dispatcher->local_get_interface()(PPB_VAR_DEPRECATED_INTERFACE)); |
| 293 } | 293 } |
| 294 } | 294 } |
| 295 | 295 |
| 296 PPB_Var_Deprecated_Proxy::~PPB_Var_Deprecated_Proxy() { | 296 PPB_Var_Deprecated_Proxy::~PPB_Var_Deprecated_Proxy() { |
| 297 } | 297 } |
| 298 | 298 |
| (...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 528 } | 528 } |
| 529 | 529 |
| 530 void PPB_Var_Deprecated_Proxy::DoReleaseObject(int64 object_id) { | 530 void PPB_Var_Deprecated_Proxy::DoReleaseObject(int64 object_id) { |
| 531 PP_Var var = { PP_VARTYPE_OBJECT }; | 531 PP_Var var = { PP_VARTYPE_OBJECT }; |
| 532 var.value.as_id = object_id; | 532 var.value.as_id = object_id; |
| 533 ppb_var_impl_->Release(var); | 533 ppb_var_impl_->Release(var); |
| 534 } | 534 } |
| 535 | 535 |
| 536 } // namespace proxy | 536 } // namespace proxy |
| 537 } // namespace ppapi | 537 } // namespace ppapi |
| OLD | NEW |