blob: 1fdeea293b0da8e2ed171e98d11797f7b5ab5a23 [file] [log] [blame]
license.botbf09a502008-08-24 00:55:551// 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.
initial.commitf5b16fe2008-07-27 00:20:514
[email protected]191eb3f72010-12-21 06:27:505#ifndef WEBKIT_PLUGINS_NPAPI_PLUGIN_STRING_STREAM_H_
6#define WEBKIT_PLUGINS_NPAPI_PLUGIN_STRING_STREAM_H_
initial.commitf5b16fe2008-07-27 00:20:517
[email protected]191eb3f72010-12-21 06:27:508#include "webkit/plugins/npapi/plugin_stream.h"
initial.commitf5b16fe2008-07-27 00:20:519
[email protected]31f4c7e2009-08-27 20:43:2910class GURL;
11
[email protected]191eb3f72010-12-21 06:27:5012namespace webkit {
13namespace npapi {
initial.commitf5b16fe2008-07-27 00:20:5114
15class PluginInstance;
16
17// An NPAPI stream from a string.
18class 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.
[email protected]31f4c7e2009-08-27 20:43:2923 PluginStringStream(PluginInstance* instance,
24 const GURL& url,
initial.commitf5b16fe2008-07-27 00:20:5125 bool notify_needed,
[email protected]31f4c7e2009-08-27 20:43:2926 void* notify_data);
initial.commitf5b16fe2008-07-27 00:20:5127
28 // Initiates the sending of data to the plugin.
[email protected]31f4c7e2009-08-27 20:43:2929 void SendToPlugin(const std::string& data,
30 const std::string& mime_type);
initial.commitf5b16fe2008-07-27 00:20:5131
32 private:
[email protected]122331d52009-11-05 23:40:4533 virtual ~PluginStringStream();
34
[email protected]31f4c7e2009-08-27 20:43:2935 DISALLOW_COPY_AND_ASSIGN(PluginStringStream);
initial.commitf5b16fe2008-07-27 00:20:5136};
37
initial.commitf5b16fe2008-07-27 00:20:5138
[email protected]191eb3f72010-12-21 06:27:5039} // namespace npapi
40} // namespace webkit
41
42#endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_STRING_STREAM_H_