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

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

Issue 210004: Fix the deadlock when Flash tries to make WMP full screen. This is a one-off... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 3 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 | « no previous file | 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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 const NPIdentifier_Param& method, 61 const NPIdentifier_Param& method,
62 const std::vector<NPVariant_Param>& args, 62 const std::vector<NPVariant_Param>& args,
63 IPC::Message* reply_msg); 63 IPC::Message* reply_msg);
64 void OnHasProperty(const NPIdentifier_Param& name, 64 void OnHasProperty(const NPIdentifier_Param& name,
65 bool* result); 65 bool* result);
66 void OnGetProperty(const NPIdentifier_Param& name, 66 void OnGetProperty(const NPIdentifier_Param& name,
67 NPVariant_Param* property, 67 NPVariant_Param* property,
68 bool* result); 68 bool* result);
69 void OnSetProperty(const NPIdentifier_Param& name, 69 void OnSetProperty(const NPIdentifier_Param& name,
70 const NPVariant_Param& property, 70 const NPVariant_Param& property,
71 bool* result); 71 IPC::Message* reply_msg);
72 void OnRemoveProperty(const NPIdentifier_Param& name, 72 void OnRemoveProperty(const NPIdentifier_Param& name,
73 bool* result); 73 bool* result);
74 void OnInvalidate(); 74 void OnInvalidate();
75 void OnEnumeration(std::vector<NPIdentifier_Param>* value, 75 void OnEnumeration(std::vector<NPIdentifier_Param>* value,
76 bool* result); 76 bool* result);
77 void OnConstruct(const std::vector<NPVariant_Param>& args, 77 void OnConstruct(const std::vector<NPVariant_Param>& args,
78 IPC::Message* reply_msg); 78 IPC::Message* reply_msg);
79 void OnEvaluate(const std::string& script, bool popups_allowed, 79 void OnEvaluate(const std::string& script, bool popups_allowed,
80 IPC::Message* reply_msg); 80 IPC::Message* reply_msg);
81 void OnSetException(const std::string& message); 81 void OnSetException(const std::string& message);
82 82
83 private: 83 private:
84 NPObject* npobject_; 84 NPObject* npobject_;
85 scoped_refptr<PluginChannelBase> channel_; 85 scoped_refptr<PluginChannelBase> channel_;
86 int route_id_; 86 int route_id_;
87 87
88 // These variables are used to ensure that the window script object is not 88 // These variables are used to ensure that the window script object is not
89 // called after the plugin widget has gone away, as the frame manually 89 // called after the plugin widget has gone away, as the frame manually
90 // deallocates it and ignores the refcount to avoid leaks. 90 // deallocates it and ignores the refcount to avoid leaks.
91 bool valid_; 91 bool valid_;
92 WebPluginDelegateProxy* web_plugin_delegate_proxy_; 92 WebPluginDelegateProxy* web_plugin_delegate_proxy_;
93 93
94 base::WaitableEvent* modal_dialog_event_; 94 base::WaitableEvent* modal_dialog_event_;
95 95
96 // The url of the main frame hosting the plugin. 96 // The url of the main frame hosting the plugin.
97 GURL page_url_; 97 GURL page_url_;
98 }; 98 };
99 99
100 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_ 100 #endif // CHROME_PLUGIN_NPOBJECT_STUB_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/plugin/npobject_stub.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698