OLD | NEW |
| (Empty) |
1 /* | |
2 * Copyright 2010 The Native Client Authors. All rights reserved. | |
3 * Use of this source code is governed by a BSD-style license that can | |
4 * be found in the LICENSE file. | |
5 */ | |
6 | |
7 #ifndef NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_FILE_IO_TRUSTED_H_ | |
8 #define NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_FILE_IO_TRUSTED_H_ | |
9 | |
10 #include "native_client/src/include/nacl_macros.h" | |
11 #include "ppapi/c/dev/ppb_file_io_trusted_dev.h" | |
12 | |
13 namespace fake_browser_ppapi { | |
14 | |
15 // Implements the PPB_FileIOTrusted_Dev interface. | |
16 // At this point this class for the interface pointer only and | |
17 // is never instantiated. Hence, it does not need to inherit from Resource. | |
18 class FileIOTrusted { | |
19 public: | |
20 // Return an interface pointer usable by PPAPI. | |
21 static const PPB_FileIOTrusted_Dev* GetInterface(); | |
22 | |
23 private: | |
24 FileIOTrusted() {} | |
25 | |
26 NACL_DISALLOW_COPY_AND_ASSIGN(FileIOTrusted); | |
27 }; | |
28 | |
29 } // namespace fake_browser_ppapi | |
30 | |
31 #endif // NATIVE_CLIENT_TESTS_FAKE_BROWSER_PPAPI_FAKE_FILE_IO_TRUSTED_H_ | |
OLD | NEW |