| 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 class that receives IPC messages from an NPObjectProxy and calls the real | 5 // A class that receives IPC messages from an NPObjectProxy and calls the real |
| 6 // NPObject. | 6 // NPObject. |
| 7 | 7 |
| 8 #ifndef CHROME_PLUGIN_NPOBJECT_STUB_H_ | 8 #ifndef CHROME_PLUGIN_NPOBJECT_STUB_H_ |
| 9 #define CHROME_PLUGIN_NPOBJECT_STUB_H_ | 9 #define CHROME_PLUGIN_NPOBJECT_STUB_H_ |
| 10 | 10 |
| (...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 66 IPC::Message* reply_msg); | 66 IPC::Message* reply_msg); |
| 67 void OnRemoveProperty(const NPIdentifier_Param& name, | 67 void OnRemoveProperty(const NPIdentifier_Param& name, |
| 68 bool* result); | 68 bool* result); |
| 69 void OnInvalidate(); | 69 void OnInvalidate(); |
| 70 void OnEnumeration(std::vector<NPIdentifier_Param>* value, | 70 void OnEnumeration(std::vector<NPIdentifier_Param>* value, |
| 71 bool* result); | 71 bool* result); |
| 72 void OnConstruct(const std::vector<NPVariant_Param>& args, | 72 void OnConstruct(const std::vector<NPVariant_Param>& args, |
| 73 IPC::Message* reply_msg); | 73 IPC::Message* reply_msg); |
| 74 void OnEvaluate(const std::string& script, bool popups_allowed, | 74 void OnEvaluate(const std::string& script, bool popups_allowed, |
| 75 IPC::Message* reply_msg); | 75 IPC::Message* reply_msg); |
| 76 void OnSetException(const std::string& message); | |
| 77 | 76 |
| 78 private: | 77 private: |
| 79 NPObject* npobject_; | 78 NPObject* npobject_; |
| 80 scoped_refptr<PluginChannelBase> channel_; | 79 scoped_refptr<PluginChannelBase> channel_; |
| 81 int route_id_; | 80 int route_id_; |
| 82 gfx::NativeViewId containing_window_; | 81 gfx::NativeViewId containing_window_; |
| 83 | 82 |
| 84 // The url of the main frame hosting the plugin. | 83 // The url of the main frame hosting the plugin. |
| 85 GURL page_url_; | 84 GURL page_url_; |
| 86 }; | 85 }; |
| 87 | 86 |
| 88 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_ | 87 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_ |
| OLD | NEW |