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

Side by Side Diff: webkit/glue/plugins/plugin_instance.h

Issue 211031: Remove the temporary Mac plugin whitelist.... (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 | « webkit/glue/plugins/plugin_host.cc ('k') | webkit/glue/plugins/plugin_instance.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 // TODO: Need to deal with NPAPI's NPSavedData. 5 // TODO: Need to deal with NPAPI's NPSavedData.
6 // I haven't seen plugins use it yet. 6 // I haven't seen plugins use it yet.
7 7
8 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__ 8 #ifndef WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__
9 #define WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__ 9 #define WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__
10 10
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 webkit_glue::WebPlugin* webplugin() { return webplugin_; } 94 webkit_glue::WebPlugin* webplugin() { return webplugin_; }
95 void set_web_plugin(webkit_glue::WebPlugin* webplugin) { 95 void set_web_plugin(webkit_glue::WebPlugin* webplugin) {
96 webplugin_ = webplugin; 96 webplugin_ = webplugin;
97 } 97 }
98 98
99 // Get the mimeType for this plugin stream 99 // Get the mimeType for this plugin stream
100 const std::string &mime_type() { return mime_type_; } 100 const std::string &mime_type() { return mime_type_; }
101 101
102 NPAPI::PluginLib* plugin_lib() { return plugin_; } 102 NPAPI::PluginLib* plugin_lib() { return plugin_; }
103 103
104 #if defined(OS_MACOSX)
105 int drawing_model() { return drawing_model_; }
106 void set_drawing_model(int value) { drawing_model_ = value; }
107 int event_model() { return event_model_; }
108 void set_event_model(int value) { event_model_ = value; }
109 #endif
110
104 #if defined(OS_WIN) 111 #if defined(OS_WIN)
105 // Handles a windows native message which this PluginInstance should deal 112 // Handles a windows native message which this PluginInstance should deal
106 // with. Returns true if the event is handled, false otherwise. 113 // with. Returns true if the event is handled, false otherwise.
107 bool HandleEvent(UINT message, WPARAM wParam, LPARAM lParam); 114 bool HandleEvent(UINT message, WPARAM wParam, LPARAM lParam);
108 #elif defined(OS_LINUX) 115 #elif defined(OS_LINUX)
109 bool HandleEvent(union _XEvent* event); 116 bool HandleEvent(union _XEvent* event);
110 #endif 117 #endif
111 118
112 // Creates a stream for sending an URL. If notify_needed 119 // Creates a stream for sending an URL. If notify_needed
113 // is true, it will send a notification to the plugin 120 // is true, it will send a notification to the plugin
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
231 bool windowless_; 238 bool windowless_;
232 bool transparent_; 239 bool transparent_;
233 webkit_glue::WebPlugin* webplugin_; 240 webkit_glue::WebPlugin* webplugin_;
234 std::string mime_type_; 241 std::string mime_type_;
235 GURL get_url_; 242 GURL get_url_;
236 intptr_t get_notify_data_; 243 intptr_t get_notify_data_;
237 bool use_mozilla_user_agent_; 244 bool use_mozilla_user_agent_;
238 #if defined(OS_WIN) 245 #if defined(OS_WIN)
239 scoped_refptr<MozillaExtensionApi> mozilla_extenstions_; 246 scoped_refptr<MozillaExtensionApi> mozilla_extenstions_;
240 #endif 247 #endif
248 #if defined(OS_MACOSX)
249 int drawing_model_;
250 int event_model_;
251 #endif
241 MessageLoop* message_loop_; 252 MessageLoop* message_loop_;
242 scoped_refptr<PluginStreamUrl> plugin_data_stream_; 253 scoped_refptr<PluginStreamUrl> plugin_data_stream_;
243 254
244 // This flag if true indicates that the plugin data would be passed from 255 // This flag if true indicates that the plugin data would be passed from
245 // webkit. if false indicates that the plugin should download the data. 256 // webkit. if false indicates that the plugin should download the data.
246 bool load_manually_; 257 bool load_manually_;
247 258
248 // Stack indicating if popups are to be enabled for the outgoing 259 // Stack indicating if popups are to be enabled for the outgoing
249 // NPN_GetURL/NPN_GetURLNotify calls. 260 // NPN_GetURL/NPN_GetURLNotify calls.
250 std::stack<bool> popups_enabled_stack_; 261 std::stack<bool> popups_enabled_stack_;
251 262
252 // True if in CloseStreams(). 263 // True if in CloseStreams().
253 bool in_close_streams_; 264 bool in_close_streams_;
254 265
255 // List of files created for the current plugin instance. File names are 266 // List of files created for the current plugin instance. File names are
256 // added to the list every time the NPP_StreamAsFile function is called. 267 // added to the list every time the NPP_StreamAsFile function is called.
257 std::vector<FilePath> files_created_; 268 std::vector<FilePath> files_created_;
258 269
259 DISALLOW_EVIL_CONSTRUCTORS(PluginInstance); 270 DISALLOW_EVIL_CONSTRUCTORS(PluginInstance);
260 }; 271 };
261 272
262 } // namespace NPAPI 273 } // namespace NPAPI
263 274
264 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__ 275 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_host.cc ('k') | webkit/glue/plugins/plugin_instance.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698