| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 111 | 111 |
| 112 // Receives the data. | 112 // Receives the data. |
| 113 virtual void DidReceiveManualData(const char* buffer, int length) = 0; | 113 virtual void DidReceiveManualData(const char* buffer, int length) = 0; |
| 114 | 114 |
| 115 // Indicates end of data load. | 115 // Indicates end of data load. |
| 116 virtual void DidFinishManualLoading() = 0; | 116 virtual void DidFinishManualLoading() = 0; |
| 117 | 117 |
| 118 // Indicates a failure in data receipt. | 118 // Indicates a failure in data receipt. |
| 119 virtual void DidManualLoadFail() = 0; | 119 virtual void DidManualLoadFail() = 0; |
| 120 | 120 |
| 121 // Only supported when the plugin is the default plugin. | |
| 122 virtual void InstallMissingPlugin() = 0; | |
| 123 | |
| 124 // Creates a WebPluginResourceClient instance and returns the same. | 121 // Creates a WebPluginResourceClient instance and returns the same. |
| 125 virtual WebPluginResourceClient* CreateResourceClient( | 122 virtual WebPluginResourceClient* CreateResourceClient( |
| 126 unsigned long resource_id, | 123 unsigned long resource_id, |
| 127 const GURL& url, | 124 const GURL& url, |
| 128 int notify_id) = 0; | 125 int notify_id) = 0; |
| 129 | 126 |
| 130 // Creates a WebPluginResourceClient instance for an existing stream that is | 127 // Creates a WebPluginResourceClient instance for an existing stream that is |
| 131 // has become seekable. | 128 // has become seekable. |
| 132 virtual WebPluginResourceClient* CreateSeekableResourceClient( | 129 virtual WebPluginResourceClient* CreateSeekableResourceClient( |
| 133 unsigned long resource_id, int range_request_id) = 0; | 130 unsigned long resource_id, int range_request_id) = 0; |
| 134 }; | 131 }; |
| 135 | 132 |
| 136 } // namespace npapi | 133 } // namespace npapi |
| 137 } // namespace webkit | 134 } // namespace webkit |
| 138 | 135 |
| 139 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_ | 136 #endif // WEBKIT_PLUGINS_NPAPI_WEBPLUGIN_DELEGATE_H_ |
| OLD | NEW |