| 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_MOCK_PLUGIN_DELEGATE_H_ | 5 #ifndef WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 6 #define WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| 7 | 7 |
| 8 #include "webkit/plugins/ppapi/plugin_delegate.h" | 8 #include "webkit/plugins/ppapi/plugin_delegate.h" |
| 9 | 9 |
| 10 struct PP_NetAddress_Private; | 10 struct PP_NetAddress_Private; |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 94 const GURL& new_file_path, | 94 const GURL& new_file_path, |
| 95 fileapi::FileSystemCallbackDispatcher* dispatcher); | 95 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 96 virtual bool ReadDirectory( | 96 virtual bool ReadDirectory( |
| 97 const GURL& directory_path, | 97 const GURL& directory_path, |
| 98 fileapi::FileSystemCallbackDispatcher* dispatcher); | 98 fileapi::FileSystemCallbackDispatcher* dispatcher); |
| 99 virtual void QueryAvailableSpace(const GURL& origin, | 99 virtual void QueryAvailableSpace(const GURL& origin, |
| 100 quota::StorageType type, | 100 quota::StorageType type, |
| 101 const AvailableSpaceCallback& callback); | 101 const AvailableSpaceCallback& callback); |
| 102 virtual void WillUpdateFile(const GURL& file_path); | 102 virtual void WillUpdateFile(const GURL& file_path); |
| 103 virtual void DidUpdateFile(const GURL& file_path, int64_t delta); | 103 virtual void DidUpdateFile(const GURL& file_path, int64_t delta); |
| 104 virtual base::PlatformFileError OpenFile( | |
| 105 const ::ppapi::PepperFilePath& path, | |
| 106 int flags, | |
| 107 base::PlatformFile* file); | |
| 108 virtual base::PlatformFileError RenameFile( | |
| 109 const ::ppapi::PepperFilePath& from_path, | |
| 110 const ::ppapi::PepperFilePath& to_path); | |
| 111 virtual base::PlatformFileError DeleteFileOrDir( | |
| 112 const ::ppapi::PepperFilePath& path, | |
| 113 bool recursive); | |
| 114 virtual base::PlatformFileError CreateDir( | |
| 115 const ::ppapi::PepperFilePath& path); | |
| 116 virtual base::PlatformFileError QueryFile( | |
| 117 const ::ppapi::PepperFilePath& path, | |
| 118 base::PlatformFileInfo* info); | |
| 119 virtual base::PlatformFileError GetDirContents( | |
| 120 const ::ppapi::PepperFilePath& path, | |
| 121 ::ppapi::DirContents* contents); | |
| 122 virtual base::PlatformFileError CreateTemporaryFile( | |
| 123 base::PlatformFile* file); | |
| 124 virtual void SyncGetFileSystemPlatformPath(const GURL& url, | 104 virtual void SyncGetFileSystemPlatformPath(const GURL& url, |
| 125 FilePath* platform_path); | 105 FilePath* platform_path); |
| 126 virtual scoped_refptr<base::MessageLoopProxy> | 106 virtual scoped_refptr<base::MessageLoopProxy> |
| 127 GetFileThreadMessageLoopProxy(); | 107 GetFileThreadMessageLoopProxy(); |
| 128 virtual uint32 TCPSocketCreate(); | 108 virtual uint32 TCPSocketCreate(); |
| 129 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, | 109 virtual void TCPSocketConnect(PPB_TCPSocket_Private_Impl* socket, |
| 130 uint32 socket_id, | 110 uint32 socket_id, |
| 131 const std::string& host, | 111 const std::string& host, |
| 132 uint16_t port); | 112 uint16_t port); |
| 133 virtual void TCPSocketConnectWithNetAddress( | 113 virtual void TCPSocketConnectWithNetAddress( |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 virtual void StopEnumerateDevices(int request_id); | 187 virtual void StopEnumerateDevices(int request_id); |
| 208 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( | 188 virtual PP_FlashLSORestrictions GetLocalDataRestrictions( |
| 209 const GURL& document_url, | 189 const GURL& document_url, |
| 210 const GURL& plugin_url); | 190 const GURL& plugin_url); |
| 211 }; | 191 }; |
| 212 | 192 |
| 213 } // namespace ppapi | 193 } // namespace ppapi |
| 214 } // namespace webkit | 194 } // namespace webkit |
| 215 | 195 |
| 216 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ | 196 #endif // WEBKIT_PLUGINS_PPAPI_MOCK_PLUGIN_DELEGATE_H_ |
| OLD | NEW |