| OLD | NEW |
| 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" |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 496 } | 496 } |
| 497 | 497 |
| 498 void PPB_Var_Deprecated_Proxy::SetAllowPluginReentrancy() { | 498 void PPB_Var_Deprecated_Proxy::SetAllowPluginReentrancy() { |
| 499 if (dispatcher()->IsPlugin()) | 499 if (dispatcher()->IsPlugin()) |
| 500 NOTREACHED(); | 500 NOTREACHED(); |
| 501 else | 501 else |
| 502 static_cast<HostDispatcher*>(dispatcher())->set_allow_plugin_reentrancy(); | 502 static_cast<HostDispatcher*>(dispatcher())->set_allow_plugin_reentrancy(); |
| 503 } | 503 } |
| 504 | 504 |
| 505 void PPB_Var_Deprecated_Proxy::DoReleaseObject(int64 object_id) { | 505 void PPB_Var_Deprecated_Proxy::DoReleaseObject(int64 object_id) { |
| 506 PP_Var var; | 506 PP_Var var = { PP_VARTYPE_OBJECT }; |
| 507 var.type = PP_VARTYPE_OBJECT; | |
| 508 var.value.as_id = object_id; | 507 var.value.as_id = object_id; |
| 509 ppb_var_impl_->Release(var); | 508 ppb_var_impl_->Release(var); |
| 510 } | 509 } |
| 511 | 510 |
| 512 } // namespace proxy | 511 } // namespace proxy |
| 513 } // namespace ppapi | 512 } // namespace ppapi |
| OLD | NEW |