| 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 // 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 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 108 int event_model() { return event_model_; } | 108 int event_model() { return event_model_; } |
| 109 void set_event_model(int value) { event_model_ = value; } | 109 void set_event_model(int value) { event_model_ = value; } |
| 110 #endif | 110 #endif |
| 111 | 111 |
| 112 // Creates a stream for sending an URL. If notify_needed | 112 // Creates a stream for sending an URL. If notify_needed |
| 113 // is true, it will send a notification to the plugin | 113 // is true, it will send a notification to the plugin |
| 114 // when the stream is complete; otherwise it will not. | 114 // when the stream is complete; otherwise it will not. |
| 115 // Set object_url to true if the load is for the object tag's | 115 // Set object_url to true if the load is for the object tag's |
| 116 // url, or false if it's for a url that the plugin | 116 // url, or false if it's for a url that the plugin |
| 117 // fetched through NPN_GetUrl[Notify]. | 117 // fetched through NPN_GetUrl[Notify]. |
| 118 PluginStreamUrl* CreateStream(int resource_id, | 118 PluginStreamUrl* CreateStream(unsigned long resource_id, |
| 119 const GURL& url, | 119 const GURL& url, |
| 120 const std::string& mime_type, | 120 const std::string& mime_type, |
| 121 bool notify_needed, | 121 bool notify_needed, |
| 122 void* notify_data); | 122 void* notify_data); |
| 123 | 123 |
| 124 // For each instance, we track all streams. When the | 124 // For each instance, we track all streams. When the |
| 125 // instance closes, all remaining streams are also | 125 // instance closes, all remaining streams are also |
| 126 // closed. All streams associated with this instance | 126 // closed. All streams associated with this instance |
| 127 // should call AddStream so that they can be cleaned | 127 // should call AddStream so that they can be cleaned |
| 128 // up when the instance shuts down. | 128 // up when the instance shuts down. |
| (...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 276 }; | 276 }; |
| 277 typedef std::map<uint32, TimerInfo> TimerMap; | 277 typedef std::map<uint32, TimerInfo> TimerMap; |
| 278 TimerMap timers_; | 278 TimerMap timers_; |
| 279 | 279 |
| 280 DISALLOW_EVIL_CONSTRUCTORS(PluginInstance); | 280 DISALLOW_EVIL_CONSTRUCTORS(PluginInstance); |
| 281 }; | 281 }; |
| 282 | 282 |
| 283 } // namespace NPAPI | 283 } // namespace NPAPI |
| 284 | 284 |
| 285 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__ | 285 #endif // WEBKIT_GLUE_PLUGIN_PLUGIN_INSTANCE_H__ |
| OLD | NEW |