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 LIBRARIES_NACL_MOUNTS_REAL_PEPPER_INTERFACE_H_ | 5 #ifndef LIBRARIES_NACL_MOUNTS_REAL_PEPPER_INTERFACE_H_ |
6 #define LIBRARIES_NACL_MOUNTS_REAL_PEPPER_INTERFACE_H_ | 6 #define LIBRARIES_NACL_MOUNTS_REAL_PEPPER_INTERFACE_H_ |
7 | 7 |
8 #include <ppapi/c/ppb.h> | 8 #include <ppapi/c/ppb.h> |
9 #include <ppapi/c/ppb_core.h> | 9 #include <ppapi/c/ppb_core.h> |
| 10 #include <ppapi/c/ppb_console.h> |
10 #include <ppapi/c/ppb_message_loop.h> | 11 #include <ppapi/c/ppb_message_loop.h> |
| 12 #include <ppapi/c/ppb_messaging.h> |
| 13 #include <ppapi/c/ppb_var.h> |
11 #include "pepper_interface.h" | 14 #include "pepper_interface.h" |
12 | 15 |
| 16 class RealConsoleInterface; |
13 class RealDirectoryReaderInterface; | 17 class RealDirectoryReaderInterface; |
14 class RealFileIoInterface; | 18 class RealFileIoInterface; |
15 class RealFileRefInterface; | 19 class RealFileRefInterface; |
16 class RealFileSystemInterface; | 20 class RealFileSystemInterface; |
| 21 class RealMessagingInterface; |
17 class RealVarInterface; | 22 class RealVarInterface; |
18 | 23 |
19 class RealPepperInterface : public PepperInterface { | 24 class RealPepperInterface : public PepperInterface { |
20 public: | 25 public: |
21 RealPepperInterface(PP_Instance instance, | 26 RealPepperInterface(PP_Instance instance, |
22 PPB_GetInterface get_browser_interface); | 27 PPB_GetInterface get_browser_interface); |
23 | 28 |
24 virtual PP_Instance GetInstance(); | 29 virtual PP_Instance GetInstance(); |
25 virtual void AddRefResource(PP_Resource); | 30 virtual void AddRefResource(PP_Resource); |
26 virtual void ReleaseResource(PP_Resource); | 31 virtual void ReleaseResource(PP_Resource); |
| 32 virtual ConsoleInterface* GetConsoleInterface(); |
27 virtual FileSystemInterface* GetFileSystemInterface(); | 33 virtual FileSystemInterface* GetFileSystemInterface(); |
28 virtual FileRefInterface* GetFileRefInterface(); | 34 virtual FileRefInterface* GetFileRefInterface(); |
29 virtual FileIoInterface* GetFileIoInterface(); | 35 virtual FileIoInterface* GetFileIoInterface(); |
30 virtual DirectoryReaderInterface* GetDirectoryReaderInterface(); | 36 virtual DirectoryReaderInterface* GetDirectoryReaderInterface(); |
| 37 virtual MessagingInterface* GetMessagingInterface(); |
31 virtual VarInterface* GetVarInterface(); | 38 virtual VarInterface* GetVarInterface(); |
32 | 39 |
33 int32_t InitializeMessageLoop(); | 40 int32_t InitializeMessageLoop(); |
34 | 41 |
35 private: | 42 private: |
36 PP_Instance instance_; | 43 PP_Instance instance_; |
37 const PPB_Core* core_interface_; | 44 const PPB_Core* core_interface_; |
38 const PPB_MessageLoop* message_loop_interface_; | 45 const PPB_MessageLoop* message_loop_interface_; |
| 46 RealConsoleInterface* console_interface_; |
39 RealDirectoryReaderInterface* directory_reader_interface_; | 47 RealDirectoryReaderInterface* directory_reader_interface_; |
40 RealFileIoInterface* fileio_interface_; | 48 RealFileIoInterface* fileio_interface_; |
41 RealFileRefInterface* fileref_interface_; | 49 RealFileRefInterface* fileref_interface_; |
42 RealFileSystemInterface* filesystem_interface_; | 50 RealFileSystemInterface* filesystem_interface_; |
| 51 RealMessagingInterface* messaging_interface_; |
43 RealVarInterface* var_interface_; | 52 RealVarInterface* var_interface_; |
44 }; | 53 }; |
45 | 54 |
46 #endif // LIBRARIES_NACL_MOUNTS_REAL_PEPPER_INTERFACE_H_ | 55 #endif // LIBRARIES_NACL_MOUNTS_REAL_PEPPER_INTERFACE_H_ |
OLD | NEW |