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