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

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

Issue 6562: This fixes http://code.google.com/p/chromium/issues/detail?id=2472, which... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 12 years, 2 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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