| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2009, Google Inc. | 2 * Copyright 2009, Google Inc. |
| 3 * All rights reserved. | 3 * All rights reserved. |
| 4 * | 4 * |
| 5 * Redistribution and use in source and binary forms, with or without | 5 * Redistribution and use in source and binary forms, with or without |
| 6 * modification, are permitted provided that the following conditions are | 6 * modification, are permitted provided that the following conditions are |
| 7 * met: | 7 * met: |
| 8 * | 8 * |
| 9 * * Redistributions of source code must retain the above copyright | 9 * * Redistributions of source code must retain the above copyright |
| 10 * notice, this list of conditions and the following disclaimer. | 10 * notice, this list of conditions and the following disclaimer. |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 }; | 84 }; |
| 85 | 85 |
| 86 #if NACL_WINDOWS | 86 #if NACL_WINDOWS |
| 87 NaClHandlePassBrowserInit(); | 87 NaClHandlePassBrowserInit(); |
| 88 #endif | 88 #endif |
| 89 | 89 |
| 90 NPAPI::PluginList::Singleton()->RegisterInternalPlugin( | 90 NPAPI::PluginList::Singleton()->RegisterInternalPlugin( |
| 91 FilePath(FILE_PATH_LITERAL("internal_nacl")), | 91 FilePath(FILE_PATH_LITERAL("internal_nacl")), |
| 92 "Google Native Client", | 92 "Google Native Client", |
| 93 "Google Native Client", | 93 "Google Native Client", |
| 94 "application/x-nacl-srpc", | 94 "application/x-nacl", |
| 95 entry_points); | 95 entry_points); |
| 96 } | 96 } |
| 97 | 97 |
| 98 // This gets called in the browser process. | 98 // This gets called in the browser process. |
| 99 void RegisterInternalNaClPlugin() { | 99 void RegisterInternalNaClPlugin() { |
| 100 RegisterCommon(); | 100 RegisterCommon(); |
| 101 } | 101 } |
| 102 | 102 |
| 103 // This gets called in the renderer process. | 103 // This gets called in the renderer process. |
| 104 void RegisterInternalNaClPlugin(const std::map<std::string, uintptr_t>& funcs) { | 104 void RegisterInternalNaClPlugin(const std::map<std::string, uintptr_t>& funcs) { |
| 105 RegisterCommon(); | 105 RegisterCommon(); |
| 106 std::map<std::string, uintptr_t>::const_iterator it = | 106 std::map<std::string, uintptr_t>::const_iterator it = |
| 107 funcs.find("launch_nacl_process_multi_fd"); | 107 funcs.find("launch_nacl_process_multi_fd"); |
| 108 if (it != funcs.end()) { | 108 if (it != funcs.end()) { |
| 109 launch_nacl_process = reinterpret_cast<LaunchNaClProcessFunc>(it->second); | 109 launch_nacl_process = reinterpret_cast<LaunchNaClProcessFunc>(it->second); |
| 110 } | 110 } |
| 111 } | 111 } |
| OLD | NEW |