| OLD | NEW |
| (Empty) |
| 1 /* | |
| 2 * Copyright (c) 2011 The Chromium Authors. All rights reserved. | |
| 3 * Use of this source code is governed by a BSD-style license that can be | |
| 4 * found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 | |
| 8 #include "native_client/src/trusted/plugin/browser_interface.h" | |
| 9 #include "native_client/src/trusted/plugin/desc_based_handle.h" | |
| 10 #include "native_client/src/trusted/plugin/plugin.h" | |
| 11 | |
| 12 | |
| 13 namespace plugin { | |
| 14 | |
| 15 DescBasedHandle::DescBasedHandle(nacl::DescWrapper* wrapper) | |
| 16 : wrapper_(wrapper) { | |
| 17 PLUGIN_PRINTF(("DescBasedHandle::DescBasedHandle (this=%p)\n", | |
| 18 static_cast<void*>(this))); | |
| 19 } | |
| 20 | |
| 21 DescBasedHandle::~DescBasedHandle() { | |
| 22 PLUGIN_PRINTF(("DescBasedHandle::~DescBasedHandle (this=%p)\n", | |
| 23 static_cast<void*>(this))); | |
| 24 } | |
| 25 | |
| 26 DescBasedHandle* DescBasedHandle::New(nacl::DescWrapper* wrapper) { | |
| 27 PLUGIN_PRINTF(("DescBasedHandle::New (wrapper=%p)\n", | |
| 28 static_cast<void*>(wrapper))); | |
| 29 | |
| 30 if (wrapper == NULL) { | |
| 31 return NULL; | |
| 32 } | |
| 33 return new DescBasedHandle(wrapper); | |
| 34 } | |
| 35 | |
| 36 } // namespace plugin | |
| OLD | NEW |