| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_GLUE_PLUGINS_PLUGIN_STREAM_H_ | 5 #ifndef WEBKIT_GLUE_PLUGINS_PLUGIN_STREAM_H_ |
| 6 #define WEBKIT_GLUE_PLUGINS_PLUGIN_STREAM_H_ | 6 #define WEBKIT_GLUE_PLUGINS_PLUGIN_STREAM_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 // Write the result as a file. | 58 // Write the result as a file. |
| 59 void WriteAsFile(); | 59 void WriteAsFile(); |
| 60 | 60 |
| 61 // Notify the plugin that a stream is complete. | 61 // Notify the plugin that a stream is complete. |
| 62 void Notify(NPReason reason); | 62 void Notify(NPReason reason); |
| 63 | 63 |
| 64 // Close the stream. | 64 // Close the stream. |
| 65 virtual bool Close(NPReason reason); | 65 virtual bool Close(NPReason reason); |
| 66 | 66 |
| 67 virtual webkit_glue::WebPluginResourceClient* AsResourceClient() { | 67 virtual webkit_glue::WebPluginResourceClient* AsResourceClient(); |
| 68 return NULL; | |
| 69 } | |
| 70 | 68 |
| 71 // Cancels any HTTP requests initiated by the stream. | 69 // Cancels any HTTP requests initiated by the stream. |
| 72 virtual void CancelRequest() {} | 70 virtual void CancelRequest() {} |
| 73 | 71 |
| 74 const NPStream* stream() const { return &stream_; } | 72 const NPStream* stream() const { return &stream_; } |
| 75 | 73 |
| 76 // setter/getter for the seekable attribute on the stream. | 74 // setter/getter for the seekable attribute on the stream. |
| 77 bool seekable() const { return seekable_stream_; } | 75 bool seekable() const { return seekable_stream_; } |
| 78 | 76 |
| 79 void set_seekable(bool seekable) { seekable_stream_ = seekable; } | 77 void set_seekable(bool seekable) { seekable_stream_ = seekable; } |
| (...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 149 std::vector<char> delivery_data_; | 147 std::vector<char> delivery_data_; |
| 150 int data_offset_; | 148 int data_offset_; |
| 151 bool seekable_stream_; | 149 bool seekable_stream_; |
| 152 std::string mime_type_; | 150 std::string mime_type_; |
| 153 DISALLOW_COPY_AND_ASSIGN(PluginStream); | 151 DISALLOW_COPY_AND_ASSIGN(PluginStream); |
| 154 }; | 152 }; |
| 155 | 153 |
| 156 } // namespace NPAPI | 154 } // namespace NPAPI |
| 157 | 155 |
| 158 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_STREAM_H_ | 156 #endif // WEBKIT_GLUE_PLUGINS_PLUGIN_STREAM_H_ |
| OLD | NEW |