How do I Plugin Chrome into my Application

1,467 views
Skip to first unread message

Anish

unread,
Feb 22, 2010, 4:21:29 AM2/22/10
to Chromium-dev
Hello!

We have an application which scrapes information from websites and
aggregates them. As of now, we use the IE 6 browser to achieve this.
The browser control is written in C++ and the business logic in Java.
We use a JAVA-COM bridge to talk to IE COM objects. We plan to
replace
IE 6 with Chrome. In order to achieve this we would like to know how
we could use Chrome as a browser control. Specifically we are looking
at the following details

1. Is there some documentation and sample code on how to host chrome
as a browser control

2. Is there any available data on how many websites of Financial
Institutions/Banks work without any issues on Chrome.

Jeremy Orlow

unread,
Feb 22, 2010, 4:32:25 AM2/22/10
to anish.c...@gmail.com, Chromium-dev
You probably want to either embed WebKit directly or to use this: http://code.google.com/p/chromiumembedded/

--
Chromium Developers mailing list: chromi...@chromium.org
View archives, change email options, or unsubscribe:
   http://groups.google.com/a/chromium.org/group/chromium-dev

Daniel Wagner-Hall

unread,
Feb 22, 2010, 9:00:01 AM2/22/10
to jor...@google.com, anish.c...@gmail.com, Chromium-dev
On 22 February 2010 09:32, Jeremy Orlow <jor...@chromium.org> wrote:
> You probably want to either embed WebKit directly or to use
> this: http://code.google.com/p/chromiumembedded/
> On Mon, Feb 22, 2010 at 9:21 AM, Anish <anish.c...@gmail.com> wrote:
>>
>> Hello!
>>
>> We have an application which scrapes information from websites and
>> aggregates them. As of now, we use the IE 6 browser to achieve this.
>> The browser control is written in C++ and the business logic in Java.
>> We use a JAVA-COM bridge to talk to IE COM objects. We plan to
>> replace
>> IE 6 with Chrome. In order to achieve  this we would like to know how
>> we could use Chrome as a browser control. Specifically we are looking
>> at the following details
>>
>> 1. Is there some documentation and sample code on how to host chrome
>> as a browser control
>>
>> 2. Is there any available data on how many websites of Financial
>> Institutions/Banks work without any issues on Chrome.

You may be interested in WebDriver (Selenium):
http://code.google.com/p/selenium/ - it has a nice Java wrapper API
around actions in Chrome, a sample application is available at
http://code.google.com/p/selenium/wiki/GettingStarted

Amit Joshi

unread,
Feb 22, 2010, 11:51:31 AM2/22/10
to dawa...@gmail.com, jor...@google.com, anish.c...@gmail.com, Chromium-dev
Google Chrome Frame (http://code.google.com/chrome/chromeframe/) exposes an ActiveX control that is similar to mshtml that can be used for embedding chrome. However, one caveat is that the only way to access the DOM is using a asynchronous postMessage like API rather than direct synchronous access using IHTMLDocument2.


--

Anish Philip

unread,
Feb 22, 2010, 11:57:00 AM2/22/10
to Amit Joshi, dawagner, jorlow, Chromium-dev
Sorry I missed mentioning that we want to stay away from COM. We've run it lot of problems with its squeaky memory management. That criteria automatically rules out Google Chrome Frame!

Anish

Anish Philip

unread,
Feb 24, 2010, 4:56:54 AM2/24/10
to Jeremy Orlow, Chromium-dev
I went through CEF and found it interesting.  The interactions with the browser inside our application could be divided into the following 


1. Events coming from the browser - NavigateComplete, DocumentComplete et al

2. Traversal and Operations on the DOM

3. Navigations on the Page - click, get et al

4. Cookie Access

5. Message Box and Internet Error Dialog Handling


After going through the documentation and the source for the client code I guess we only have support for 1 and 3 above. I wanted to check if we can use CEF to access the DOM and for operations 4 and 5. 

Thanks,
Anish

Marshall Greenblatt

unread,
Feb 24, 2010, 11:46:20 AM2/24/10
to anish.c...@gmail.com, Jeremy Orlow, Chromium-dev
On Wed, Feb 24, 2010 at 4:56 AM, Anish Philip <anish.c...@gmail.com> wrote:
I went through CEF and found it interesting.  The interactions with the browser inside our application could be divided into the following 


1. Events coming from the browser - NavigateComplete, DocumentComplete et al

2. Traversal and Operations on the DOM

3. Navigations on the Page - click, get et al

4. Cookie Access

5. Message Box and Internet Error Dialog Handling


After going through the documentation and the source for the client code I guess we only have support for 1 and 3 above. I wanted to check if we can use CEF to access the DOM and for operations 4 and 5. 

I'll continue this discussion on the CEF forum:

http://magpcss.org/ceforum/viewtopic.php?f=11&t=95
 

Alex Russell

unread,
Feb 24, 2010, 12:05:16 PM2/24/10
to anish.c...@gmail.com, Amit Joshi, dawagner, jorlow, Chromium-dev
Chrome Frame also exposes an NPAPI interface, if that's more
palatable, although it sort of seems like a wash given your concerns.

Regards

Reply all
Reply to author
Forward
0 new messages