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 "webkit/plugins/ppapi/message_channel.h" | 5 #include "webkit/plugins/ppapi/message_channel.h" |
6 | 6 |
7 #include <cstdlib> | 7 #include <cstdlib> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
(...skipping 324 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
335 npvariant_args, | 335 npvariant_args, |
336 sizeof(npvariant_args)/sizeof(*npvariant_args), | 336 sizeof(npvariant_args)/sizeof(*npvariant_args), |
337 &result_var); | 337 &result_var); |
338 } | 338 } |
339 | 339 |
340 void MessageChannel::PostMessageToNative(PP_Var message_data) { | 340 void MessageChannel::PostMessageToNative(PP_Var message_data) { |
341 instance_->HandleMessage(message_data); | 341 instance_->HandleMessage(message_data); |
342 } | 342 } |
343 | 343 |
344 MessageChannel::~MessageChannel() { | 344 MessageChannel::~MessageChannel() { |
| 345 WebBindings::releaseObject(np_object_); |
345 WebBindings::releaseVariantValue(&onmessage_invoker_); | 346 WebBindings::releaseVariantValue(&onmessage_invoker_); |
346 } | 347 } |
347 | 348 |
348 } // namespace ppapi | 349 } // namespace ppapi |
349 } // namespace webkit | 350 } // namespace webkit |
350 | 351 |
OLD | NEW |