Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(101)

Side by Side Diff: chrome/plugin/npobject_stub.h

Issue 113823: Added support for constructor calls in the NPAPI (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/plugin/npobject_proxy.cc ('k') | chrome/plugin/npobject_stub.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 NPVariant_Param* property, 65 NPVariant_Param* property,
66 bool* result); 66 bool* result);
67 void OnSetProperty(const NPIdentifier_Param& name, 67 void OnSetProperty(const NPIdentifier_Param& name,
68 const NPVariant_Param& property, 68 const NPVariant_Param& property,
69 bool* result); 69 bool* result);
70 void OnRemoveProperty(const NPIdentifier_Param& name, 70 void OnRemoveProperty(const NPIdentifier_Param& name,
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 OnConstruct(const std::vector<NPVariant_Param>& args,
76 IPC::Message* reply_msg);
75 void OnEvaluate(const std::string& script, bool popups_allowed, 77 void OnEvaluate(const std::string& script, bool popups_allowed,
76 IPC::Message* reply_msg); 78 IPC::Message* reply_msg);
77 void OnSetException(const std::string& message); 79 void OnSetException(const std::string& message);
78 80
79 private: 81 private:
80 NPObject* npobject_; 82 NPObject* npobject_;
81 scoped_refptr<PluginChannelBase> channel_; 83 scoped_refptr<PluginChannelBase> channel_;
82 int route_id_; 84 int route_id_;
83 85
84 // These variables are used to ensure that the window script object is not 86 // These variables are used to ensure that the window script object is not
85 // called after the plugin widget has gone away, as the frame manually 87 // called after the plugin widget has gone away, as the frame manually
86 // deallocates it and ignores the refcount to avoid leaks. 88 // deallocates it and ignores the refcount to avoid leaks.
87 bool valid_; 89 bool valid_;
88 WebPluginDelegateProxy* web_plugin_delegate_proxy_; 90 WebPluginDelegateProxy* web_plugin_delegate_proxy_;
89 91
90 base::WaitableEvent* modal_dialog_event_; 92 base::WaitableEvent* modal_dialog_event_;
91 }; 93 };
92 94
93 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_ 95 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_
OLDNEW
« no previous file with comments | « chrome/plugin/npobject_proxy.cc ('k') | chrome/plugin/npobject_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698