| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This crash is possible if a WebContents is created, an object is
added to the bridge and the WebContents is then destroyed. If the
timing is right the channel_.get() method returns NULL in that case
and a crash occurs.
BUG=None
Review URL: https://chromiumcodereview.appspot.com/11421175
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@171215 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
Review URL: https://codereview.chromium.org/11235068
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163732 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
namespace to it.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163290 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
| |
Review URL: https://chromiumcodereview.appspot.com/10696166
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146071 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
| |
JavaBridgeChannel inherits from NPChannelBase, which is ref-counted, so we
should use scoped_refptr, not scoped_ptr.
Review URL: https://chromiumcodereview.appspot.com/10356149
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@136965 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This change adds support for coercing to Java arrays when passing JavaScript
objects to the methods of Java objects injected using the Java Bridge.
- Modify JavaType to store the type of the array elements when the type of the
value is TypeArray.
- Add logic to create Java arrays and to interrogate JavaScript objects for
their length property and array elements.
- Modify existing CoerceJavaScriptXXXToJavaValue() methods to take an
additional coerce_to_string argument. This is required because we require
slightly different behaviour when coercing to Java strings, depending on
whether or not the value is an array element.
- Modify JavaBridgeChannel to override
NPChannelBase::OnControlMessageReceived() to avoid DCHECK().
Also fix a potential overflow when converting JavaScript numbers to Java
strings.
BUG=105547
Review URL: http://codereview.chromium.org/9006025
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@116848 0039d316-1c4b-4281-b951-d872f2087c98
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This is the first patch in a series to add support for passing renderer-side
objects to the methods of injected objects in the Java Bridge. It adds support
for non-array renderer-side objects.
In order to pass renderer-side objects to Java, we need to proxy them to the
browser. This means that the browser must make synchronous IPC calls to the
renderer.
- Update the JavaBridgeChannel to obtain a route ID for a renderer-side object
by sending a sync IPC to the JavaBridgeChannelHost.
- Allow the JavaBridgeChannelHost to send messages to the JavaBridgeChannel to
support the above and to allow the browser to interrogate renderer-side objects.
- Update JavaBoundObject to handle renderer-side objects. Add a TODO for
arrays.
- Update comment about the shutdown event used with the JavaBridgeChannelHost.
- Update comments about the containing window and page URL used when creating
NPObjectStub and NPObjectProxy objects.
BUG=105547
Review URL: http://codereview.chromium.org/8918008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@115151 0039d316-1c4b-4281-b951-d872f2087c98
|
|
BUG=96703
Review URL: http://codereview.chromium.org/8525016
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@109603 0039d316-1c4b-4281-b951-d872f2087c98
|