| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_DELEGATE_H_ | 5 #ifndef WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ | 6 #define WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // Indicates end of data load. | 114 // Indicates end of data load. |
| 115 virtual void DidFinishManualLoading() = 0; | 115 virtual void DidFinishManualLoading() = 0; |
| 116 | 116 |
| 117 // Indicates a failure in data receipt. | 117 // Indicates a failure in data receipt. |
| 118 virtual void DidManualLoadFail() = 0; | 118 virtual void DidManualLoadFail() = 0; |
| 119 | 119 |
| 120 // Only supported when the plugin is the default plugin. | 120 // Only supported when the plugin is the default plugin. |
| 121 virtual void InstallMissingPlugin() = 0; | 121 virtual void InstallMissingPlugin() = 0; |
| 122 | 122 |
| 123 // Creates a WebPluginResourceClient instance and returns the same. | 123 // Creates a WebPluginResourceClient instance and returns the same. |
| 124 virtual WebPluginResourceClient* CreateResourceClient(int resource_id, | 124 virtual WebPluginResourceClient* CreateResourceClient( |
| 125 const GURL& url, | 125 unsigned long resource_id, |
| 126 bool notify_needed, | 126 const GURL& url, |
| 127 intptr_t notify_data, | 127 bool notify_needed, |
| 128 intptr_t stream) = 0; | 128 intptr_t notify_data, |
| 129 intptr_t stream) = 0; |
| 129 | 130 |
| 130 // The following methods are for use in implementing Pepper renderers. | 131 // The following methods are for use in implementing Pepper renderers. |
| 131 // They should not be called outside of that context. | 132 // They should not be called outside of that context. |
| 132 | 133 |
| 133 // Pepper 2D device API. | 134 // Pepper 2D device API. |
| 134 virtual NPError Device2DQueryCapability(int32 capability, int32* value) { | 135 virtual NPError Device2DQueryCapability(int32 capability, int32* value) { |
| 135 return NPERR_GENERIC_ERROR; | 136 return NPERR_GENERIC_ERROR; |
| 136 } | 137 } |
| 137 virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request, | 138 virtual NPError Device2DQueryConfig(const NPDeviceContext2DConfig* request, |
| 138 NPDeviceContext2DConfig* obtain) { | 139 NPDeviceContext2DConfig* obtain) { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 159 return NPERR_GENERIC_ERROR; | 160 return NPERR_GENERIC_ERROR; |
| 160 } | 161 } |
| 161 virtual NPError Device2DDestroyContext(NPDeviceContext2D* context) { | 162 virtual NPError Device2DDestroyContext(NPDeviceContext2D* context) { |
| 162 return NPERR_GENERIC_ERROR; | 163 return NPERR_GENERIC_ERROR; |
| 163 } | 164 } |
| 164 }; | 165 }; |
| 165 | 166 |
| 166 } // namespace webkit_glue | 167 } // namespace webkit_glue |
| 167 | 168 |
| 168 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ | 169 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ |
| OLD | NEW |