| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 "o3d/gpu_plugin/np_utils/np_browser.h" | 5 #include "o3d/gpu_plugin/np_utils/np_browser.h" |
| 6 #include "base/logging.h" | 6 #include "base/logging.h" |
| 7 | 7 |
| 8 #if defined(O3D_IN_CHROME) | 8 #if defined(O3D_IN_CHROME) |
| 9 #include "webkit/glue/plugins/nphostapi.h" | 9 #include "webkit/glue/plugins/nphostapi.h" |
| 10 #else | 10 #else |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 void* data) { | 117 void* data) { |
| 118 netscape_funcs_->pluginthreadasynccall(npp, callback, data); | 118 netscape_funcs_->pluginthreadasynccall(npp, callback, data); |
| 119 } | 119 } |
| 120 | 120 |
| 121 void* NPBrowser::MapMemory(NPP npp, | 121 void* NPBrowser::MapMemory(NPP npp, |
| 122 NPObject* object, | 122 NPObject* object, |
| 123 size_t* size) { | 123 size_t* size) { |
| 124 // NPN_MapMemory is an experiment. It only exists in NPNetscapeFuncs in | 124 // NPN_MapMemory is an experiment. It only exists in NPNetscapeFuncs in |
| 125 // a hacked version of Chromium. | 125 // a hacked version of Chromium. |
| 126 #if defined(O3D_IN_CHROME) | 126 #if defined(O3D_IN_CHROME) |
| 127 return netscape_funcs_->mapmemory(npp, object, size); | 127 return NULL; |
| 128 #else | 128 #else |
| 129 return NPN_MapMemory(npp, object, size); | 129 return NPN_MapMemory(npp, object, size); |
| 130 #endif | 130 #endif |
| 131 } | 131 } |
| 132 | 132 |
| 133 } // namespace gpu_plugin | 133 } // namespace gpu_plugin |
| 134 } // namespace o3d | 134 } // namespace o3d |
| OLD | NEW |