OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 | 9 |
10 #include "app/gfx/native_widget_types.h" | 10 #include "app/gfx/native_widget_types.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 | 116 |
117 // Only supported when the plugin is the default plugin. | 117 // Only supported when the plugin is the default plugin. |
118 virtual void InstallMissingPlugin() = 0; | 118 virtual void InstallMissingPlugin() = 0; |
119 | 119 |
120 // Creates a WebPluginResourceClient instance and returns the same. | 120 // Creates a WebPluginResourceClient instance and returns the same. |
121 virtual WebPluginResourceClient* CreateResourceClient(int resource_id, | 121 virtual WebPluginResourceClient* CreateResourceClient(int resource_id, |
122 const GURL& url, | 122 const GURL& url, |
123 bool notify_needed, | 123 bool notify_needed, |
124 intptr_t notify_data, | 124 intptr_t notify_data, |
125 intptr_t stream) = 0; | 125 intptr_t stream) = 0; |
| 126 |
| 127 // The following two methods are for use in implementing Pepper renderers. |
| 128 // They should not be called outside of that context. |
| 129 virtual NPError InitializeRenderContext(NPRenderType type, |
| 130 NPRenderContext* context) { |
| 131 return NPERR_GENERIC_ERROR; |
| 132 } |
| 133 |
| 134 virtual NPError FlushRenderContext(NPRenderContext* context) { |
| 135 return NPERR_GENERIC_ERROR; |
| 136 } |
126 }; | 137 }; |
127 | 138 |
128 } // namespace webkit_glue | 139 } // namespace webkit_glue |
129 | 140 |
130 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ | 141 #endif // WEBKIT_GLUE_WEBPLUGIN_DELEGATE_H_ |
OLD | NEW |