| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/callback.h" | 11 #include "base/callback.h" |
| 12 #include "base/message_loop_proxy.h" | 12 #include "base/message_loop_proxy.h" |
| 13 #include "base/memory/ref_counted.h" | 13 #include "base/memory/ref_counted.h" |
| 14 #include "base/platform_file.h" | 14 #include "base/platform_file.h" |
| 15 #include "base/shared_memory.h" | 15 #include "base/shared_memory.h" |
| 16 #include "base/sync_socket.h" | 16 #include "base/sync_socket.h" |
| 17 #include "base/time.h" | 17 #include "base/time.h" |
| 18 #include "googleurl/src/gurl.h" | 18 #include "googleurl/src/gurl.h" |
| 19 #include "media/video/capture/video_capture.h" | 19 #include "media/video/capture/video_capture.h" |
| 20 #include "media/video/video_decode_accelerator.h" | 20 #include "media/video/video_decode_accelerator.h" |
| 21 #include "ppapi/c/dev/pp_video_dev.h" | 21 #include "ppapi/c/dev/pp_video_dev.h" |
| 22 #include "ppapi/c/dev/ppb_device_ref_dev.h" | 22 #include "ppapi/c/dev/ppb_device_ref_dev.h" |
| 23 #include "ppapi/c/pp_completion_callback.h" | 23 #include "ppapi/c/pp_completion_callback.h" |
| 24 #include "ppapi/c/pp_errors.h" | 24 #include "ppapi/c/pp_errors.h" |
| 25 #include "ppapi/c/pp_instance.h" | 25 #include "ppapi/c/pp_instance.h" |
| 26 #include "ppapi/c/pp_stdint.h" | 26 #include "ppapi/c/pp_stdint.h" |
| 27 #include "ui/gfx/size.h" | 27 #include "ui/gfx/size.h" |
| 28 #include "webkit/fileapi/file_system_types.h" | 28 #include "webkit/fileapi/file_system_types.h" |
| 29 #include "webkit/glue/clipboard_client.h" |
| 29 #include "webkit/plugins/ppapi/dir_contents.h" | 30 #include "webkit/plugins/ppapi/dir_contents.h" |
| 30 #include "webkit/quota/quota_types.h" | 31 #include "webkit/quota/quota_types.h" |
| 31 | 32 |
| 32 class GURL; | 33 class GURL; |
| 33 struct PP_NetAddress_Private; | 34 struct PP_NetAddress_Private; |
| 34 class SkBitmap; | 35 class SkBitmap; |
| 35 class TransportDIB; | 36 class TransportDIB; |
| 36 | 37 |
| 37 namespace base { | 38 namespace base { |
| 38 class MessageLoopProxy; | 39 class MessageLoopProxy; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 61 } | 62 } |
| 62 | 63 |
| 63 namespace WebKit { | 64 namespace WebKit { |
| 64 class WebFileChooserCompletion; | 65 class WebFileChooserCompletion; |
| 65 class WebGamepads; | 66 class WebGamepads; |
| 66 struct WebCursorInfo; | 67 struct WebCursorInfo; |
| 67 struct WebFileChooserParams; | 68 struct WebFileChooserParams; |
| 68 } | 69 } |
| 69 | 70 |
| 70 namespace webkit_glue { | 71 namespace webkit_glue { |
| 72 class ClipboardClient; |
| 71 class P2PTransport; | 73 class P2PTransport; |
| 72 } // namespace webkit_glue | 74 } // namespace webkit_glue |
| 73 | 75 |
| 74 namespace webkit { | 76 namespace webkit { |
| 75 namespace ppapi { | 77 namespace ppapi { |
| 76 | 78 |
| 77 class FileIO; | 79 class FileIO; |
| 78 class FullscreenContainer; | 80 class FullscreenContainer; |
| 79 class PepperFilePath; | 81 class PepperFilePath; |
| 80 class PluginInstance; | 82 class PluginInstance; |
| (...skipping 474 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 555 typedef base::Callback< | 557 typedef base::Callback< |
| 556 void (int /* request_id */, | 558 void (int /* request_id */, |
| 557 bool /* succeeded */, | 559 bool /* succeeded */, |
| 558 const std::vector< ::ppapi::DeviceRefData>& /* devices */)> | 560 const std::vector< ::ppapi::DeviceRefData>& /* devices */)> |
| 559 EnumerateDevicesCallback; | 561 EnumerateDevicesCallback; |
| 560 | 562 |
| 561 // Enumerates devices of the specified type. The request ID passed into the | 563 // Enumerates devices of the specified type. The request ID passed into the |
| 562 // callback will be the same as the return value. | 564 // callback will be the same as the return value. |
| 563 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 565 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
| 564 const EnumerateDevicesCallback& callback) = 0; | 566 const EnumerateDevicesCallback& callback) = 0; |
| 567 // Create a ClipboardClient for writing to the clipboard. The caller will own |
| 568 // the pointer to this. |
| 569 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 565 }; | 570 }; |
| 566 | 571 |
| 567 } // namespace ppapi | 572 } // namespace ppapi |
| 568 } // namespace webkit | 573 } // namespace webkit |
| 569 | 574 |
| 570 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 575 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |