| 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_PPAPI_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback.h" | 10 #include "base/callback.h" |
| (...skipping 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 virtual SkBitmap* GetSadPluginBitmap() = 0; | 244 virtual SkBitmap* GetSadPluginBitmap() = 0; |
| 245 | 245 |
| 246 // The caller will own the pointer returned from this. | 246 // The caller will own the pointer returned from this. |
| 247 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; | 247 virtual PlatformImage2D* CreateImage2D(int width, int height) = 0; |
| 248 | 248 |
| 249 // The caller will own the pointer returned from this. | 249 // The caller will own the pointer returned from this. |
| 250 virtual PlatformContext3D* CreateContext3D() = 0; | 250 virtual PlatformContext3D* CreateContext3D() = 0; |
| 251 | 251 |
| 252 // The caller will own the pointer returned from this. | 252 // The caller will own the pointer returned from this. |
| 253 virtual PlatformVideoDecoder* CreateVideoDecoder( | 253 virtual PlatformVideoDecoder* CreateVideoDecoder( |
| 254 PP_VideoDecoderConfig_Dev* decoder_config) = 0; | 254 PP_VideoDecoderConfig_Dev* decoder_config, |
| 255 media::VideoDecodeAccelerator::Client* client) = 0; |
| 255 | 256 |
| 256 // The caller is responsible for calling Shutdown() on the returned pointer | 257 // The caller is responsible for calling Shutdown() on the returned pointer |
| 257 // to clean up the corresponding resources allocated during this call. | 258 // to clean up the corresponding resources allocated during this call. |
| 258 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, | 259 virtual PlatformAudio* CreateAudio(uint32_t sample_rate, |
| 259 uint32_t sample_count, | 260 uint32_t sample_count, |
| 260 PlatformAudio::Client* client) = 0; | 261 PlatformAudio::Client* client) = 0; |
| 261 | 262 |
| 262 // A pointer is returned immediately, but it is not ready to be used until | 263 // A pointer is returned immediately, but it is not ready to be used until |
| 263 // BrokerConnected has been called. | 264 // BrokerConnected has been called. |
| 264 // The caller is responsible for calling Release() on the returned pointer | 265 // The caller is responsible for calling Release() on the returned pointer |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 389 // Creates P2PTransport object. | 390 // Creates P2PTransport object. |
| 390 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; | 391 virtual webkit_glue::P2PTransport* CreateP2PTransport() = 0; |
| 391 | 392 |
| 392 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; | 393 virtual double GetLocalTimeZoneOffset(base::Time t) = 0; |
| 393 }; | 394 }; |
| 394 | 395 |
| 395 } // namespace ppapi | 396 } // namespace ppapi |
| 396 } // namespace webkit | 397 } // namespace webkit |
| 397 | 398 |
| 398 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 399 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |