Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / child / npapi / plugin_string_stream.h
blob8445003c0e3bba3f4700944392144cc07254587f
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.
5 #ifndef CONTENT_CHILD_PLUGIN_STRING_STREAM_H_
6 #define CONTENT_CHILD_PLUGIN_STRING_STREAM_H_
8 #include "content/child/npapi/plugin_stream.h"
10 class GURL;
12 namespace content {
14 class PluginInstance;
16 // An NPAPI stream from a string.
17 class PluginStringStream : public PluginStream {
18 public:
19 // Create a new stream for sending to the plugin.
20 // If notify_needed, will notify the plugin after the data has
21 // all been sent.
22 PluginStringStream(PluginInstance* instance,
23 const GURL& url,
24 bool notify_needed,
25 void* notify_data);
27 // Initiates the sending of data to the plugin.
28 void SendToPlugin(const std::string& data,
29 const std::string& mime_type);
31 private:
32 virtual ~PluginStringStream();
34 DISALLOW_COPY_AND_ASSIGN(PluginStringStream);
38 } // namespace content
40 #endif // CONTENT_CHILD_PLUGIN_STRING_STREAM_H_