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

Side by Side Diff: content/child/npapi/plugin_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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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_STREAM_H_ 5 #ifndef CONTENT_CHILD_NPAPI_PLUGIN_STREAM_H_
6 #define WEBKIT_PLUGINS_NPAPI_PLUGIN_STREAM_H_ 6 #define CONTENT_CHILD_NPAPI_PLUGIN_STREAM_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/files/file_path.h" 11 #include "base/files/file_path.h"
12 #include "base/memory/ref_counted.h" 12 #include "base/memory/ref_counted.h"
13 #include "build/build_config.h" 13 #include "build/build_config.h"
14 #include "third_party/npapi/bindings/npapi.h" 14 #include "third_party/npapi/bindings/npapi.h"
15 15
16 namespace webkit { 16 namespace content {
17 namespace npapi {
18 17
19 class PluginInstance; 18 class PluginInstance;
20 class WebPluginResourceClient; 19 class WebPluginResourceClient;
21 20
22 // Base class for a NPAPI stream. Tracks basic elements 21 // Base class for a NPAPI stream. Tracks basic elements
23 // of a stream for NPAPI notifications and stream position. 22 // of a stream for NPAPI notifications and stream position.
24 class PluginStream : public base::RefCounted<PluginStream> { 23 class PluginStream : public base::RefCounted<PluginStream> {
25 public: 24 public:
26 // Create a new PluginStream object. If needNotify is true, then the 25 // Create a new PluginStream object. If needNotify is true, then the
27 // plugin will be notified when the stream has been fully sent. 26 // plugin will be notified when the stream has been fully sent.
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 FILE* temp_file_; 147 FILE* temp_file_;
149 base::FilePath temp_file_path_; 148 base::FilePath temp_file_path_;
150 #endif 149 #endif
151 std::vector<char> delivery_data_; 150 std::vector<char> delivery_data_;
152 int data_offset_; 151 int data_offset_;
153 bool seekable_stream_; 152 bool seekable_stream_;
154 std::string mime_type_; 153 std::string mime_type_;
155 DISALLOW_COPY_AND_ASSIGN(PluginStream); 154 DISALLOW_COPY_AND_ASSIGN(PluginStream);
156 }; 155 };
157 156
158 } // namespace npapi 157 } // namespace content
159 } // namespace webkit
160 158
161 #endif // WEBKIT_PLUGINS_NPAPI_PLUGIN_STREAM_H_ 159 #endif // CONTENT_CHILD_NPAPI_PLUGIN_STREAM_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698