| OLD | NEW |
| 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 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 | 110 |
| 111 // When a default plugin has downloaded the plugin list and finds it is | 111 // When a default plugin has downloaded the plugin list and finds it is |
| 112 // available, it calls this method to notify the renderer. Also it will update | 112 // available, it calls this method to notify the renderer. Also it will update |
| 113 // the status when user clicks on the plugin to install. | 113 // the status when user clicks on the plugin to install. |
| 114 virtual void OnMissingPluginStatus(int status) = 0; | 114 virtual void OnMissingPluginStatus(int status) = 0; |
| 115 | 115 |
| 116 // Handles GetURL/GetURLNotify/PostURL/PostURLNotify requests initiated | 116 // Handles GetURL/GetURLNotify/PostURL/PostURLNotify requests initiated |
| 117 // by plugins. If the plugin wants notification of the result, notify_id will | 117 // by plugins. If the plugin wants notification of the result, notify_id will |
| 118 // be non-zero. | 118 // be non-zero. |
| 119 virtual void HandleURLRequest(const char* url, | 119 virtual void HandleURLRequest(const char* url, |
| 120 const char *method, | 120 const char* method, |
| 121 const char* target, | 121 const char* target, |
| 122 const char* buf, | 122 const char* buf, |
| 123 unsigned int len, | 123 unsigned int len, |
| 124 int notify_id, | 124 int notify_id, |
| 125 bool popups_allowed) = 0; | 125 bool popups_allowed) = 0; |
| 126 | 126 |
| 127 // Cancels document load. | 127 // Cancels document load. |
| 128 virtual void CancelDocumentLoad() = 0; | 128 virtual void CancelDocumentLoad() = 0; |
| 129 | 129 |
| 130 // Initiates a HTTP range request for an existing stream. | 130 // Initiates a HTTP range request for an existing stream. |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 virtual void DidReceiveData(const char* buffer, int length, | 165 virtual void DidReceiveData(const char* buffer, int length, |
| 166 int data_offset) = 0; | 166 int data_offset) = 0; |
| 167 virtual void DidFinishLoading() = 0; | 167 virtual void DidFinishLoading() = 0; |
| 168 virtual void DidFail() = 0; | 168 virtual void DidFail() = 0; |
| 169 virtual bool IsMultiByteResponseExpected() = 0; | 169 virtual bool IsMultiByteResponseExpected() = 0; |
| 170 }; | 170 }; |
| 171 | 171 |
| 172 } // namespace webkit_glue | 172 } // namespace webkit_glue |
| 173 | 173 |
| 174 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ | 174 #endif // #ifndef WEBKIT_GLUE_WEBPLUGIN_H_ |
| OLD | NEW |