| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 | 9 |
| 10 #include "base/callback_old.h" | 10 #include "base/callback_old.h" |
| (...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 356 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, | 356 virtual base::PlatformFileError RenameFile(const PepperFilePath& from_path, |
| 357 const PepperFilePath& to_path) = 0; | 357 const PepperFilePath& to_path) = 0; |
| 358 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, | 358 virtual base::PlatformFileError DeleteFileOrDir(const PepperFilePath& path, |
| 359 bool recursive) = 0; | 359 bool recursive) = 0; |
| 360 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; | 360 virtual base::PlatformFileError CreateDir(const PepperFilePath& path) = 0; |
| 361 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, | 361 virtual base::PlatformFileError QueryFile(const PepperFilePath& path, |
| 362 base::PlatformFileInfo* info) = 0; | 362 base::PlatformFileInfo* info) = 0; |
| 363 virtual base::PlatformFileError GetDirContents(const PepperFilePath& path, | 363 virtual base::PlatformFileError GetDirContents(const PepperFilePath& path, |
| 364 DirContents* contents) = 0; | 364 DirContents* contents) = 0; |
| 365 | 365 |
| 366 // Synchronously returns the platform file path for a filesystem URL. |
| 367 virtual void SyncGetFileSystemPlatformPath(const GURL& url, |
| 368 FilePath* platform_path) = 0; |
| 369 |
| 366 // Returns a MessageLoopProxy instance associated with the message loop | 370 // Returns a MessageLoopProxy instance associated with the message loop |
| 367 // of the file thread in this renderer. | 371 // of the file thread in this renderer. |
| 368 virtual scoped_refptr<base::MessageLoopProxy> | 372 virtual scoped_refptr<base::MessageLoopProxy> |
| 369 GetFileThreadMessageLoopProxy() = 0; | 373 GetFileThreadMessageLoopProxy() = 0; |
| 370 | 374 |
| 371 virtual int32_t ConnectTcp( | 375 virtual int32_t ConnectTcp( |
| 372 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, | 376 webkit::ppapi::PPB_Flash_NetConnector_Impl* connector, |
| 373 const char* host, | 377 const char* host, |
| 374 uint16_t port) = 0; | 378 uint16_t port) = 0; |
| 375 virtual int32_t ConnectTcpAddress( | 379 virtual int32_t ConnectTcpAddress( |
| (...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 441 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; | 445 virtual base::SharedMemory* CreateAnonymousSharedMemory(uint32_t size) = 0; |
| 442 | 446 |
| 443 // Returns the current preferences. | 447 // Returns the current preferences. |
| 444 virtual ::ppapi::Preferences GetPreferences() = 0; | 448 virtual ::ppapi::Preferences GetPreferences() = 0; |
| 445 }; | 449 }; |
| 446 | 450 |
| 447 } // namespace ppapi | 451 } // namespace ppapi |
| 448 } // namespace webkit | 452 } // namespace webkit |
| 449 | 453 |
| 450 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ | 454 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ |
| OLD | NEW |