| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 NPVariant_Param* property, | 56 NPVariant_Param* property, |
| 57 bool* result); | 57 bool* result); |
| 58 void OnSetProperty(const NPIdentifier_Param& name, | 58 void OnSetProperty(const NPIdentifier_Param& name, |
| 59 const NPVariant_Param& property, | 59 const NPVariant_Param& property, |
| 60 bool* result); | 60 bool* result); |
| 61 void OnRemoveProperty(const NPIdentifier_Param& name, | 61 void OnRemoveProperty(const NPIdentifier_Param& name, |
| 62 bool* result); | 62 bool* result); |
| 63 void OnInvalidate(); | 63 void OnInvalidate(); |
| 64 void OnEnumeration(std::vector<NPIdentifier_Param>* value, | 64 void OnEnumeration(std::vector<NPIdentifier_Param>* value, |
| 65 bool* result); | 65 bool* result); |
| 66 void OnEvaluate(const std::string& script, IPC::Message* reply_msg); | 66 void OnEvaluate(const std::string& script, bool popups_allowed, |
| 67 IPC::Message* reply_msg); |
| 67 void OnSetException(const std::string& message); | 68 void OnSetException(const std::string& message); |
| 68 | 69 |
| 69 private: | 70 private: |
| 70 NPObject* npobject_; | 71 NPObject* npobject_; |
| 71 int route_id_; | 72 int route_id_; |
| 72 scoped_refptr<PluginChannelBase> channel_; | 73 scoped_refptr<PluginChannelBase> channel_; |
| 73 | 74 |
| 74 // These variables are used to ensure that the window script object is not | 75 // These variables are used to ensure that the window script object is not |
| 75 // called after the plugin widget has gone away, as the frame manually | 76 // called after the plugin widget has gone away, as the frame manually |
| 76 // deallocates it and ignores the refcount to avoid leaks. | 77 // deallocates it and ignores the refcount to avoid leaks. |
| 77 bool valid_; | 78 bool valid_; |
| 78 WebPluginDelegateProxy* web_plugin_delegate_proxy_; | 79 WebPluginDelegateProxy* web_plugin_delegate_proxy_; |
| 79 }; | 80 }; |
| 80 | 81 |
| 81 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H__ | 82 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H__ |
| 82 | 83 |
| OLD | NEW |