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

Side by Side Diff: webkit/glue/webplugin.h

Issue 464074: Enable Pepper support by default, including building the test plugin.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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/plugin_host.cc ('k') | webkit/glue/webplugin_impl.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) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 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_WEBPLUGIN_H_ 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_H_
6 #define WEBKIT_GLUE_WEBPLUGIN_H_ 6 #define WEBKIT_GLUE_WEBPLUGIN_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 // Called when the WebPluginResourceClient instance is deleted. 122 // Called when the WebPluginResourceClient instance is deleted.
123 virtual void ResourceClientDeleted( 123 virtual void ResourceClientDeleted(
124 WebPluginResourceClient* resource_client) {} 124 WebPluginResourceClient* resource_client) {}
125 125
126 // Defers the loading of the resource identified by resource_id. This is 126 // Defers the loading of the resource identified by resource_id. This is
127 // controlled by the defer parameter. 127 // controlled by the defer parameter.
128 virtual void SetDeferResourceLoading(unsigned long resource_id, 128 virtual void SetDeferResourceLoading(unsigned long resource_id,
129 bool defer) = 0; 129 bool defer) = 0;
130 130
131 // Gets the WebPluginDelegate that implements the interface. 131 // Gets the WebPluginDelegate that implements the interface.
132 // This API is only for use with Pepper, and hence only with 132 // This API is only for use with Pepper, and is only overridden
133 // in renderer process plugins. 133 // by in-renderer implementations.
134 virtual WebPluginDelegate* delegate() { return NULL; } 134 virtual WebPluginDelegate* delegate() { return NULL; }
135 }; 135 };
136 136
137 // Simpler version of ResourceHandleClient that lends itself to proxying. 137 // Simpler version of ResourceHandleClient that lends itself to proxying.
138 class WebPluginResourceClient { 138 class WebPluginResourceClient {
139 public: 139 public:
140 virtual ~WebPluginResourceClient() {} 140 virtual ~WebPluginResourceClient() {}
141 virtual void WillSendRequest(const GURL& url) = 0; 141 virtual void WillSendRequest(const GURL& url) = 0;
142 // The request_is_seekable parameter indicates whether byte range requests 142 // The request_is_seekable parameter indicates whether byte range requests
143 // can be issued for the underlying stream. 143 // can be issued for the underlying stream.
144 virtual void DidReceiveResponse(const std::string& mime_type, 144 virtual void DidReceiveResponse(const std::string& mime_type,
145 const std::string& headers, 145 const std::string& headers,
146 uint32 expected_length, 146 uint32 expected_length,
147 uint32 last_modified, 147 uint32 last_modified,
148 bool request_is_seekable) = 0; 148 bool request_is_seekable) = 0;
149 virtual void DidReceiveData(const char* buffer, int length, 149 virtual void DidReceiveData(const char* buffer, int length,
150 int data_offset) = 0; 150 int data_offset) = 0;
151 virtual void DidFinishLoading() = 0; 151 virtual void DidFinishLoading() = 0;
152 virtual void DidFail() = 0; 152 virtual void DidFail() = 0;
153 virtual bool IsMultiByteResponseExpected() = 0; 153 virtual bool IsMultiByteResponseExpected() = 0;
154 }; 154 };
155 155
156 } // namespace webkit_glue 156 } // namespace webkit_glue
157 157
158 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ 158 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_
OLDNEW
« no previous file with comments | « webkit/glue/plugins/plugin_host.cc ('k') | webkit/glue/webplugin_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698