| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_STRING_STREAM_H_ | |
| 6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_STRING_STREAM_H_ | |
| 7 | |
| 8 #include "webkit/plugins/npapi/plugin_stream.h" | |
| 9 | |
| 10 class GURL; | |
| 11 | |
| 12 namespace webkit { | |
| 13 namespace npapi { | |
| 14 | |
| 15 class PluginInstance; | |
| 16 | |
| 17 // An NPAPI stream from a string. | |
| 18 class PluginStringStream : public PluginStream { | |
| 19 public: | |
| 20 // Create a new stream for sending to the plugin. | |
| 21 // If notify_needed, will notify the plugin after the data has | |
| 22 // all been sent. | |
| 23 PluginStringStream(PluginInstance* instance, | |
| 24 const GURL& url, | |
| 25 bool notify_needed, | |
| 26 void* notify_data); | |
| 27 | |
| 28 // Initiates the sending of data to the plugin. | |
| 29 void SendToPlugin(const std::string& data, | |
| 30 const std::string& mime_type); | |
| 31 | |
| 32 private: | |
| 33 virtual ~PluginStringStream(); | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(PluginStringStream); | |
| 36 }; | |
| 37 | |
| 38 | |
| 39 } // namespace npapi | |
| 40 } // namespace webkit | |
| 41 | |
| 42 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_STRING_STREAM_H_ | |
| OLD | NEW |