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

Side by Side Diff: content/child/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
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 CONTENT_CHILD_PLUGIN_STRING_STREAM_H_
6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_STRING_STREAM_H_ 6 #define CONTENT_CHILD_PLUGIN_STRING_STREAM_H_
7 7
8 #include "webkit/plugins/npapi/plugin_stream.h" 8 #include "content/child/npapi/plugin_stream.h"
9 9
10 class GURL; 10 class GURL;
11 11
12 namespace webkit { 12 namespace content {
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
38 37
39 } // namespace npapi 38 } // namespace content
40 } // namespace webkit
41 39
42 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_STRING_STREAM_H_ 40 #endif // CONTENT_CHILD_PLUGIN_STRING_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698