| 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_old.h" | 10 #include "base/callback_old.h" |
| 11 #include "base/message_loop_proxy.h" | 11 #include "base/message_loop_proxy.h" |
| 12 #include "base/memory/ref_counted.h" | 12 #include "base/memory/ref_counted.h" |
| 13 #include "base/platform_file.h" | 13 #include "base/platform_file.h" |
| 14 #include "base/shared_memory.h" | 14 #include "base/shared_memory.h" |
| 15 #include "base/sync_socket.h" | 15 #include "base/sync_socket.h" |
| 16 #include "base/time.h" | 16 #include "base/time.h" |
| 17 #include "googleurl/src/gurl.h" | 17 #include "googleurl/src/gurl.h" |
| 18 #include "media/video/video_decode_accelerator.h" | 18 #include "media/video/video_decode_accelerator.h" |
| 19 #include "ppapi/c/dev/pp_video_dev.h" |
| 19 #include "ppapi/c/pp_completion_callback.h" | 20 #include "ppapi/c/pp_completion_callback.h" |
| 20 #include "ppapi/c/pp_errors.h" | 21 #include "ppapi/c/pp_errors.h" |
| 21 #include "ppapi/c/pp_instance.h" | 22 #include "ppapi/c/pp_instance.h" |
| 22 #include "ppapi/c/pp_stdint.h" | 23 #include "ppapi/c/pp_stdint.h" |
| 23 #include "ui/gfx/size.h" | 24 #include "ui/gfx/size.h" |
| 24 #include "webkit/fileapi/file_system_types.h" | 25 #include "webkit/fileapi/file_system_types.h" |
| 25 #include "webkit/plugins/ppapi/dir_contents.h" | 26 #include "webkit/plugins/ppapi/dir_contents.h" |
| 26 | 27 |
| 27 class AudioMessageFilter; | 28 class AudioMessageFilter; |
| 28 class GURL; | 29 class GURL; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 54 namespace WebKit { | 55 namespace WebKit { |
| 55 class WebFileChooserCompletion; | 56 class WebFileChooserCompletion; |
| 56 struct WebFileChooserParams; | 57 struct WebFileChooserParams; |
| 57 } | 58 } |
| 58 | 59 |
| 59 namespace webkit_glue { | 60 namespace webkit_glue { |
| 60 class P2PTransport; | 61 class P2PTransport; |
| 61 } // namespace webkit_glue | 62 } // namespace webkit_glue |
| 62 | 63 |
| 63 struct PP_Flash_NetAddress; | 64 struct PP_Flash_NetAddress; |
| 64 struct PP_VideoDecoderConfig_Dev; | |
| 65 | 65 |
| 66 class TransportDIB; | 66 class TransportDIB; |
| 67 | 67 |
| 68 namespace webkit { | 68 namespace webkit { |
| 69 namespace ppapi { | 69 namespace ppapi { |
| 70 | 70 |
| 71 class FileIO; | 71 class FileIO; |
| 72 class FullscreenContainer; | 72 class FullscreenContainer; |
| 73 class PepperFilePath; | 73 class PepperFilePath; |
| 74 class PluginInstance; | 74 class PluginInstance; |
| (...skipping 169 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_VideoConfigElement* 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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 | 394 |
| 394 // TODO(viettrungluu): Generalize this for use with other plugins if it proves | 395 // TODO(viettrungluu): Generalize this for use with other plugins if it proves |
| 395 // necessary. | 396 // necessary. |
| 396 virtual std::string GetFlashCommandLineArgs() = 0; | 397 virtual std::string GetFlashCommandLineArgs() = 0; |
| 397 }; | 398 }; |
| 398 | 399 |
| 399 } // namespace ppapi | 400 } // namespace ppapi |
| 400 } // namespace webkit | 401 } // namespace webkit |
| 401 | 402 |
| 402 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 403 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |