Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1310)

Side by Side Diff: webkit/plugins/npapi/plugin_string_stream.h

Issue 19761007: Move NPAPI implementation out of webkit/plugins/npapi and into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698