OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2010 The Native Client Authors. All rights reserved. | 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 | 3 * Use of this source code is governed by a BSD-style license that can |
4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
5 */ | 5 */ |
6 | 6 |
7 | 7 |
8 // NPAPI implementation of the interface to call browser functionality. | 8 // NPAPI implementation of the interface to call browser functionality. |
9 | 9 |
10 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_BROWSER_IMPL_NPAPI_H_ | 10 #ifndef NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_BROWSER_IMPL_NPAPI_H_ |
11 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_BROWSER_IMPL_NPAPI_H_ | 11 #define NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_BROWSER_IMPL_NPAPI_H_ |
12 | 12 |
13 #include <stdio.h> | 13 #include <stdio.h> |
14 #include <map> | 14 #include <map> |
15 | 15 |
16 #include "native_client/src/include/nacl_macros.h" | 16 #include "native_client/src/include/nacl_macros.h" |
17 #include "native_client/src/include/nacl_string.h" | 17 #include "native_client/src/include/nacl_string.h" |
18 #include "native_client/src/include/portability.h" | 18 #include "native_client/src/include/portability.h" |
19 #include "native_client/src/shared/npruntime/nacl_npapi.h" | 19 #include "native_client/src/shared/npruntime/nacl_npapi.h" |
20 #include "native_client/src/trusted/plugin/api_defines.h" | 20 #include "native_client/src/trusted/plugin/api_defines.h" |
21 #include "native_client/src/trusted/plugin/srpc/browser_interface.h" | 21 #include "native_client/src/trusted/plugin/browser_interface.h" |
22 | 22 |
23 namespace nacl { | 23 namespace nacl { |
24 | 24 |
25 class NPModule; | 25 class NPModule; |
26 | 26 |
27 } // namespace | 27 } // namespace |
28 | 28 |
29 namespace plugin { | 29 namespace plugin { |
30 | 30 |
31 class BrowserImplNpapi : public BrowserInterface { | 31 class BrowserImplNpapi : public BrowserInterface { |
(...skipping 26 matching lines...) Expand all Loading... |
58 }; | 58 }; |
59 | 59 |
60 // Convert from the API-independent instance identifier to the NPAPI NPP. | 60 // Convert from the API-independent instance identifier to the NPAPI NPP. |
61 NPP InstanceIdentifierToNPP(InstanceIdentifier id); | 61 NPP InstanceIdentifierToNPP(InstanceIdentifier id); |
62 // Convert from the NPAPI NPP type to the API-independent instance identifier. | 62 // Convert from the NPAPI NPP type to the API-independent instance identifier. |
63 InstanceIdentifier NPPToInstanceIdentifier(NPP npp); | 63 InstanceIdentifier NPPToInstanceIdentifier(NPP npp); |
64 | 64 |
65 } // namespace plugin | 65 } // namespace plugin |
66 | 66 |
67 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_BROWSER_IMPL_NPAPI_H_ | 67 #endif // NATIVE_CLIENT_SRC_TRUSTED_PLUGIN_NPAPI_BROWSER_IMPL_NPAPI_H_ |
OLD | NEW |