summaryrefslogtreecommitdiffstats
path: root/content/renderer/java/java_bridge_channel.h
Commit message (Collapse)AuthorAgeFilesLines
* Fix crash in JavaBridgeDispatcher::OnAddNamedObject.mkosiba@chromium.org2012-12-051-0/+1
| | | | | | | | | | | | | | 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
* Move the remaning files in content\common to the content namespace.jam@chromium.org2012-10-241-1/+1
| | | | | | Review URL: https://codereview.chromium.org/11235068 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163732 0039d316-1c4b-4281-b951-d872f2087c98
* Move the remaining code in content\renderer that wasn't in the content ↵jam@chromium.org2012-10-221-0/+4
| | | | | | namespace to it. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@163290 0039d316-1c4b-4281-b951-d872f2087c98
* Remove #pragma once from contentajwong@chromium.org2012-07-111-1/+0
| | | | | | Review URL: https://chromiumcodereview.appspot.com/10696166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@146071 0039d316-1c4b-4281-b951-d872f2087c98
* Fix JavaBridgeDispatcher to ref-count JavaBridgeChannelsteveblock@chromium.org2012-05-141-2/+3
| | | | | | | | | | 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
* Fix the Java Bridge to support coercing to Java arrayssteveblock@chromium.org2012-01-081-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix the Java Bridge to support non-array renderer-side objectssteveblock@chromium.org2011-12-201-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Move Java Bridge files to new java/ subdirectorysteveblock@chromium.org2011-11-111-0/+33
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