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_PLUGINS_NPAPI_WEBPLUGIN_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 bool notify_redirects) = 0; | 131 bool notify_redirects) = 0; |
132 | 132 |
133 // Cancels document load. | 133 // Cancels document load. |
134 virtual void CancelDocumentLoad() = 0; | 134 virtual void CancelDocumentLoad() = 0; |
135 | 135 |
136 // Initiates a HTTP range request for an existing stream. | 136 // Initiates a HTTP range request for an existing stream. |
137 virtual void InitiateHTTPRangeRequest(const char* url, | 137 virtual void InitiateHTTPRangeRequest(const char* url, |
138 const char* range_info, | 138 const char* range_info, |
139 int range_request_id) = 0; | 139 int range_request_id) = 0; |
140 | 140 |
141 // Returns true iff in off the record (Incognito) mode. | 141 // Returns true iff in incognito mode. |
142 virtual bool IsOffTheRecord() = 0; | 142 virtual bool IsOffTheRecord() = 0; |
143 | 143 |
144 // Called when the WebPluginResourceClient instance is deleted. | 144 // Called when the WebPluginResourceClient instance is deleted. |
145 virtual void ResourceClientDeleted( | 145 virtual void ResourceClientDeleted( |
146 WebPluginResourceClient* resource_client) {} | 146 WebPluginResourceClient* resource_client) {} |
147 | 147 |
148 // Defers the loading of the resource identified by resource_id. This is | 148 // Defers the loading of the resource identified by resource_id. This is |
149 // controlled by the defer parameter. | 149 // controlled by the defer parameter. |
150 virtual void SetDeferResourceLoading(unsigned long resource_id, | 150 virtual void SetDeferResourceLoading(unsigned long resource_id, |
151 bool defer) = 0; | 151 bool defer) = 0; |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
196 virtual void DidFinishLoading() = 0; | 196 virtual void DidFinishLoading() = 0; |
197 virtual void DidFail() = 0; | 197 virtual void DidFail() = 0; |
198 virtual bool IsMultiByteResponseExpected() = 0; | 198 virtual bool IsMultiByteResponseExpected() = 0; |
199 virtual int ResourceId() = 0; | 199 virtual int ResourceId() = 0; |
200 }; | 200 }; |
201 | 201 |
202 } // namespace npapi | 202 } // namespace npapi |
203 } // namespace webkit | 203 } // namespace webkit |
204 | 204 |
205 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ | 205 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_H_ |
OLD | NEW |