| 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 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 30 #include "ppapi/shared_impl/dir_contents.h" | 30 #include "ppapi/shared_impl/dir_contents.h" |
| 31 #include "ui/gfx/size.h" | 31 #include "ui/gfx/size.h" |
| 32 #include "webkit/fileapi/file_system_types.h" | 32 #include "webkit/fileapi/file_system_types.h" |
| 33 #include "webkit/glue/clipboard_client.h" | 33 #include "webkit/glue/clipboard_client.h" |
| 34 #include "webkit/quota/quota_types.h" | 34 #include "webkit/quota/quota_types.h" |
| 35 | 35 |
| 36 class GURL; | 36 class GURL; |
| 37 class SkBitmap; | 37 class SkBitmap; |
| 38 class SkCanvas; | 38 class SkCanvas; |
| 39 class TransportDIB; | 39 class TransportDIB; |
| 40 struct PP_HostResolver_Private_Hint; | |
| 41 struct PP_NetAddress_Private; | 40 struct PP_NetAddress_Private; |
| 42 | 41 |
| 43 namespace WebKit { | 42 namespace WebKit { |
| 44 class WebGraphicsContext3D; | 43 class WebGraphicsContext3D; |
| 45 } | 44 } |
| 46 | 45 |
| 47 namespace base { | 46 namespace base { |
| 48 class MessageLoopProxy; | 47 class MessageLoopProxy; |
| 49 class Time; | 48 class Time; |
| 50 } | 49 } |
| 51 | 50 |
| 52 namespace fileapi { | 51 namespace fileapi { |
| 53 class FileSystemCallbackDispatcher; | 52 class FileSystemCallbackDispatcher; |
| 54 } | 53 } |
| 55 | 54 |
| 56 namespace gfx { | 55 namespace gfx { |
| 57 class Point; | 56 class Point; |
| 58 } | 57 } |
| 59 | 58 |
| 60 namespace gpu { | 59 namespace gpu { |
| 61 class CommandBuffer; | 60 class CommandBuffer; |
| 62 } | 61 } |
| 63 | 62 |
| 64 namespace ppapi { | 63 namespace ppapi { |
| 65 class PepperFilePath; | 64 class PepperFilePath; |
| 66 class PPB_HostResolver_Shared; | |
| 67 class PPB_X509Certificate_Fields; | 65 class PPB_X509Certificate_Fields; |
| 68 struct DeviceRefData; | 66 struct DeviceRefData; |
| 69 struct HostPortPair; | 67 struct HostPortPair; |
| 70 struct Preferences; | 68 struct Preferences; |
| 71 | 69 |
| 72 namespace thunk { | 70 namespace thunk { |
| 73 class ResourceCreationAPI; | 71 class ResourceCreationAPI; |
| 74 } | 72 } |
| 75 | 73 |
| 76 } // namespace ppapi | 74 } // namespace ppapi |
| (...skipping 485 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 562 | 560 |
| 563 // For PPB_TCPServerSocket_Private. | 561 // For PPB_TCPServerSocket_Private. |
| 564 virtual void TCPServerSocketListen(PP_Resource socket_resource, | 562 virtual void TCPServerSocketListen(PP_Resource socket_resource, |
| 565 const PP_NetAddress_Private& addr, | 563 const PP_NetAddress_Private& addr, |
| 566 int32_t backlog) = 0; | 564 int32_t backlog) = 0; |
| 567 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0; | 565 virtual void TCPServerSocketAccept(uint32 server_socket_id) = 0; |
| 568 virtual void TCPServerSocketStopListening( | 566 virtual void TCPServerSocketStopListening( |
| 569 PP_Resource socket_resource, | 567 PP_Resource socket_resource, |
| 570 uint32 socket_id) = 0; | 568 uint32 socket_id) = 0; |
| 571 | 569 |
| 572 // For PPB_HostResolver_Private. | |
| 573 virtual void RegisterHostResolver( | |
| 574 ::ppapi::PPB_HostResolver_Shared* host_resolver, | |
| 575 uint32 host_resolver_id) = 0; | |
| 576 virtual void HostResolverResolve( | |
| 577 uint32 host_resolver_id, | |
| 578 const ::ppapi::HostPortPair& host_port, | |
| 579 const PP_HostResolver_Private_Hint* hint) = 0; | |
| 580 virtual void UnregisterHostResolver(uint32 host_resolver_id) = 0; | |
| 581 | |
| 582 // Add/remove a network list observer. | 570 // Add/remove a network list observer. |
| 583 virtual bool AddNetworkListObserver( | 571 virtual bool AddNetworkListObserver( |
| 584 webkit_glue::NetworkListObserver* observer) = 0; | 572 webkit_glue::NetworkListObserver* observer) = 0; |
| 585 virtual void RemoveNetworkListObserver( | 573 virtual void RemoveNetworkListObserver( |
| 586 webkit_glue::NetworkListObserver* observer) = 0; | 574 webkit_glue::NetworkListObserver* observer) = 0; |
| 587 | 575 |
| 588 // For PPB_X509Certificate_Private. | 576 // For PPB_X509Certificate_Private. |
| 589 virtual bool X509CertificateParseDER( | 577 virtual bool X509CertificateParseDER( |
| 590 const std::vector<char>& der, | 578 const std::vector<char>& der, |
| 591 ::ppapi::PPB_X509Certificate_Fields* fields) = 0; | 579 ::ppapi::PPB_X509Certificate_Fields* fields) = 0; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 675 // Returns restrictions on local data handled by the plug-in. | 663 // Returns restrictions on local data handled by the plug-in. |
| 676 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 664 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
| 677 const GURL& document_url, | 665 const GURL& document_url, |
| 678 const GURL& plugin_url) = 0; | 666 const GURL& plugin_url) = 0; |
| 679 }; | 667 }; |
| 680 | 668 |
| 681 } // namespace ppapi | 669 } // namespace ppapi |
| 682 } // namespace webkit | 670 } // namespace webkit |
| 683 | 671 |
| 684 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 672 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |