| 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 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 71 bool* result); | 71 bool* result); |
| 72 void OnInvalidate(); | 72 void OnInvalidate(); |
| 73 void OnEnumeration(std::vector<NPIdentifier_Param>* value, | 73 void OnEnumeration(std::vector<NPIdentifier_Param>* value, |
| 74 bool* result); | 74 bool* result); |
| 75 void OnEvaluate(const std::string& script, bool popups_allowed, | 75 void OnEvaluate(const std::string& script, bool popups_allowed, |
| 76 IPC::Message* reply_msg); | 76 IPC::Message* reply_msg); |
| 77 void OnSetException(const std::string& message); | 77 void OnSetException(const std::string& message); |
| 78 | 78 |
| 79 private: | 79 private: |
| 80 NPObject* npobject_; | 80 NPObject* npobject_; |
| 81 scoped_refptr<PluginChannelBase> channel_; |
| 81 int route_id_; | 82 int route_id_; |
| 82 scoped_refptr<PluginChannelBase> channel_; | |
| 83 | |
| 84 base::WaitableEvent* modal_dialog_event_; | |
| 85 | 83 |
| 86 // These variables are used to ensure that the window script object is not | 84 // These variables are used to ensure that the window script object is not |
| 87 // called after the plugin widget has gone away, as the frame manually | 85 // called after the plugin widget has gone away, as the frame manually |
| 88 // deallocates it and ignores the refcount to avoid leaks. | 86 // deallocates it and ignores the refcount to avoid leaks. |
| 89 bool valid_; | 87 bool valid_; |
| 90 WebPluginDelegateProxy* web_plugin_delegate_proxy_; | 88 WebPluginDelegateProxy* web_plugin_delegate_proxy_; |
| 89 |
| 90 base::WaitableEvent* modal_dialog_event_; |
| 91 }; | 91 }; |
| 92 | 92 |
| 93 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_ | 93 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_ |
| OLD | NEW |