| 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 486 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 typedef base::Callback< | 569 typedef base::Callback< |
| 568 void (int /* request_id */, | 570 void (int /* request_id */, |
| 569 bool /* succeeded */, | 571 bool /* succeeded */, |
| 570 const std::vector< ::ppapi::DeviceRefData>& /* devices */)> | 572 const std::vector< ::ppapi::DeviceRefData>& /* devices */)> |
| 571 EnumerateDevicesCallback; | 573 EnumerateDevicesCallback; |
| 572 | 574 |
| 573 // Enumerates devices of the specified type. The request ID passed into the | 575 // Enumerates devices of the specified type. The request ID passed into the |
| 574 // callback will be the same as the return value. | 576 // callback will be the same as the return value. |
| 575 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 577 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
| 576 const EnumerateDevicesCallback& callback) = 0; | 578 const EnumerateDevicesCallback& callback) = 0; |
| 579 // Create a ClipboardClient for writing to the clipboard. The caller will own |
| 580 // the pointer to this. |
| 581 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
| 577 }; | 582 }; |
| 578 | 583 |
| 579 } // namespace ppapi | 584 } // namespace ppapi |
| 580 } // namespace webkit | 585 } // namespace webkit |
| 581 | 586 |
| 582 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 587 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |