Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1009)

Unified Diff: content/browser/renderer_host/java/java_bridge_dispatcher_host.h

Issue 8890018: Update Java Bridge to use its own thread in the browser process (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove superfluous header Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/java/java_bridge_dispatcher_host.h
diff --git a/content/browser/renderer_host/java/java_bridge_dispatcher_host.h b/content/browser/renderer_host/java/java_bridge_dispatcher_host.h
index b10b90055284791c12947e02ad9cf2f5d02e4f19..07fe6432d5e52935fed07de88effbf039707b882 100644
--- a/content/browser/renderer_host/java/java_bridge_dispatcher_host.h
+++ b/content/browser/renderer_host/java/java_bridge_dispatcher_host.h
@@ -17,10 +17,10 @@ struct NPObject;
struct NPVariant_Param;
// This class handles injecting Java objects into a single RenderView. The Java
-// object itself lives on the browser's WEBKIT thread, while a proxy object is
-// created in the renderer. An instance of this class exists for each
-// RenderViewHost.
-class JavaBridgeDispatcherHost :
+// object itself lives in the browser process on a background thread, while a
+// proxy object is created in the renderer. An instance of this class exists
+// for each RenderViewHost.
+class JavaBridgeDispatcherHost
: public base::RefCountedThreadSafe<JavaBridgeDispatcherHost>,
public RenderViewHostObserver {
public:
@@ -33,9 +33,9 @@ class JavaBridgeDispatcherHost :
// using |name|. The proxy object remains bound until the next time the
// window object is cleared after a call to RemoveNamedObject() or
// AddNamedObject() with the same name. The proxy object proxies calls back
- // to |object|, which is manipulated on the WEBKIT thread. This class holds a
- // reference to |object| for the time that the proxy object is bound to the
- // window object.
+ // to |object|, which is manipulated on the background thread. This class
+ // holds a reference to |object| for the time that the proxy object is bound
+ // to the window object.
void AddNamedObject(const string16& name, NPObject* object);
void RemoveNamedObject(const string16& name);

Powered by Google App Engine
This is Rietveld 408576698