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

Side by Side Diff: webkit/glue/plugins/plugin_stream.h

Issue 5741001: Even more virtual method deinlining. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase (windows) Created 10 years 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
« no previous file with comments | « webkit/glue/plugins/pepper_var.cc ('k') | webkit/glue/plugins/plugin_stream.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/pepper_var.cc ('k') | webkit/glue/plugins/plugin_stream.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698