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_resource.h" | 26 #include "ppapi/c/pp_resource.h" |
27 #include "ppapi/c/pp_stdint.h" | 27 #include "ppapi/c/pp_stdint.h" |
| 28 #include "ppapi/c/private/ppb_flash.h" |
28 #include "ppapi/shared_impl/dir_contents.h" | 29 #include "ppapi/shared_impl/dir_contents.h" |
29 #include "ui/gfx/size.h" | 30 #include "ui/gfx/size.h" |
30 #include "webkit/fileapi/file_system_types.h" | 31 #include "webkit/fileapi/file_system_types.h" |
31 #include "webkit/glue/clipboard_client.h" | 32 #include "webkit/glue/clipboard_client.h" |
32 #include "webkit/quota/quota_types.h" | 33 #include "webkit/quota/quota_types.h" |
33 | 34 |
34 class GURL; | 35 class GURL; |
35 class SkBitmap; | 36 class SkBitmap; |
36 class TransportDIB; | 37 class TransportDIB; |
37 struct PP_HostResolver_Private_Hint; | 38 struct PP_HostResolver_Private_Hint; |
(...skipping 619 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
657 // Enumerates devices of the specified type. The request ID passed into the | 658 // Enumerates devices of the specified type. The request ID passed into the |
658 // callback will be the same as the return value. | 659 // callback will be the same as the return value. |
659 virtual int EnumerateDevices(PP_DeviceType_Dev type, | 660 virtual int EnumerateDevices(PP_DeviceType_Dev type, |
660 const EnumerateDevicesCallback& callback) = 0; | 661 const EnumerateDevicesCallback& callback) = 0; |
661 // Create a ClipboardClient for writing to the clipboard. The caller will own | 662 // Create a ClipboardClient for writing to the clipboard. The caller will own |
662 // the pointer to this. | 663 // the pointer to this. |
663 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; | 664 virtual webkit_glue::ClipboardClient* CreateClipboardClient() const = 0; |
664 | 665 |
665 // Returns a Device ID | 666 // Returns a Device ID |
666 virtual std::string GetDeviceID() = 0; | 667 virtual std::string GetDeviceID() = 0; |
| 668 |
| 669 // Returns restrictions on local data handled by the plug-in. |
| 670 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
| 671 const GURL& document_url, |
| 672 const GURL& plugin_url) = 0; |
667 }; | 673 }; |
668 | 674 |
669 } // namespace ppapi | 675 } // namespace ppapi |
670 } // namespace webkit | 676 } // namespace webkit |
671 | 677 |
672 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 678 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
OLD | NEW |