| 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 // A proxy for NPObject that sends all calls to the object to an NPObjectStub | 5 // A proxy for NPObject that sends all calls to the object to an NPObjectStub |
| 6 // running in a different process. | 6 // running in a different process. |
| 7 | 7 |
| 8 #ifndef CHROME_PLUGIN_NPOBJECT_PROXY_H_ | 8 #ifndef CHROME_PLUGIN_NPOBJECT_PROXY_H_ |
| 9 #define CHROME_PLUGIN_NPOBJECT_PROXY_H_ | 9 #define CHROME_PLUGIN_NPOBJECT_PROXY_H_ |
| 10 | 10 |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 74 const NPVariant *args, | 74 const NPVariant *args, |
| 75 uint32_t arg_count, | 75 uint32_t arg_count, |
| 76 NPVariant *result); | 76 NPVariant *result); |
| 77 | 77 |
| 78 // The next two functions are only called on NPObjects from the browser. | 78 // The next two functions are only called on NPObjects from the browser. |
| 79 static bool NPNEvaluate(NPP npp, | 79 static bool NPNEvaluate(NPP npp, |
| 80 NPObject *obj, | 80 NPObject *obj, |
| 81 NPString *script, | 81 NPString *script, |
| 82 NPVariant *result); | 82 NPVariant *result); |
| 83 | 83 |
| 84 static void NPNSetException(NPObject *obj, | |
| 85 const NPUTF8 *message); | |
| 86 | |
| 87 static bool NPInvokePrivate(NPP npp, | 84 static bool NPInvokePrivate(NPP npp, |
| 88 NPObject *obj, | 85 NPObject *obj, |
| 89 bool is_default, | 86 bool is_default, |
| 90 NPIdentifier name, | 87 NPIdentifier name, |
| 91 const NPVariant *args, | 88 const NPVariant *args, |
| 92 uint32_t arg_count, | 89 uint32_t arg_count, |
| 93 NPVariant *result); | 90 NPVariant *result); |
| 94 | 91 |
| 95 static NPObjectProxy* GetProxy(NPObject* object); | 92 static NPObjectProxy* GetProxy(NPObject* object); |
| 96 static const NPClass* npclass() { return &npclass_proxy_; } | 93 static const NPClass* npclass() { return &npclass_proxy_; } |
| (...skipping 19 matching lines...) Expand all Loading... |
| 116 scoped_refptr<PluginChannelBase> channel_; | 113 scoped_refptr<PluginChannelBase> channel_; |
| 117 int route_id_; | 114 int route_id_; |
| 118 intptr_t npobject_ptr_; | 115 intptr_t npobject_ptr_; |
| 119 gfx::NativeViewId containing_window_; | 116 gfx::NativeViewId containing_window_; |
| 120 | 117 |
| 121 // The url of the main frame hosting the plugin. | 118 // The url of the main frame hosting the plugin. |
| 122 GURL page_url_; | 119 GURL page_url_; |
| 123 }; | 120 }; |
| 124 | 121 |
| 125 #endif // CHROME_PLUGIN_NPOBJECT_PROXY_H_ | 122 #endif // CHROME_PLUGIN_NPOBJECT_PROXY_H_ |
| OLD | NEW |