I am working on a browser extension in Firefox to intercept HTTP requests and alter them. Due to the purpose of my project, I would need to incorporate a project that's built in C++ in order to process that information. Rewriting the C++ project would take too much work (it's a big project). I read that I could make the C++ code into a .dll file and use that, but I am unsure on how to do this (kind of new to programming extensions. Did do a lot of web dev tho).
I have been doing a lot of research, and NPAPI seems to be the way to go (I know it's being phased out, but the project is just a proof of concept that I need working). However, I'm not sure whether frameworks like FireBreath can do extensions. It also needs to be in Firefox, since my company doesn't use anything else.
Is there a good method of accessing the C++ code in an extension? I'd love some links to tutorials if there are any. I did read this previous thread, but it didn't give a solid conclusion on what to use. Also, if there's a better/easier way to do this (plugins, etc), I'd love to know!
Sorry if this is in the wrong forum. Still new here :S