Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What embedded browser for C++ project?

Tags:

c++

browser

Is there any browser I could embedd in C++ application on Windows?

I need all features typical browser has (HTTP client, cookies support, DOM style HTML parser, JavaScript engine) except rendering. Because I don't need rendering capability (and that's rather big part of a browser) I would prefer a browser with non monolithic design so I wouldn't have to include rendering stuff into my project.

It would be nice if it had C++ rather than C API.

I need this embedded browser mainly because I have much trouble finding C++ HTML parser which could handle broken HTML like browsers do.
If you know any, please answer Library Recommendation: C++ HTML Parser SO question or at least vote on it to increase a chance someone will give a good answer.

like image 423
Piotr Dobrogost Avatar asked May 07 '09 15:05

Piotr Dobrogost


2 Answers

There is a project called CEF = The Chromium Embedded Framework - it is:

a simple framework for embedding Chromium-based browsers in other applications. It is a BSD-licensed open source project founded by Marshall Greenblatt in 2008 and based on the Google Chromium project. Unlike the Chromium project itself, which focuses mainly on Google Chrome application development, CEF focuses on facilitating embedded browser use cases in third-party applications.

and yes:

The base CEF framework includes support for the C and C++ programming languages.

like image 103
jave.web Avatar answered Sep 21 '22 16:09

jave.web


You might also want to check out Awesomium-- it's free for non-commercial use and has all of the features you're looking for (if you don't need rendering, simply don't use it).

like image 45
Adam Avatar answered Sep 18 '22 16:09

Adam