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

Unified Diff: third_party/mojo/src/mojo/public/js/connection.js

Issue 954643002: Update mojo sdk to rev 3d23dae011859a2aae49f1d1adde705c8e85d819 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use run_renderer_in_process() Created 5 years, 10 months 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: third_party/mojo/src/mojo/public/js/connection.js
diff --git a/third_party/mojo/src/mojo/public/js/connection.js b/third_party/mojo/src/mojo/public/js/connection.js
index 4a7a8b8883db9e7455b46e4c6f8003657e25ea87..62e8798fb2d736fea2d68e075aba818ff6df92ca 100644
--- a/third_party/mojo/src/mojo/public/js/connection.js
+++ b/third_party/mojo/src/mojo/public/js/connection.js
@@ -73,52 +73,6 @@ define("mojo/public/js/connection", [
TestConnection.prototype = Object.create(Connection.prototype);
- // TODO(hansmuller): remove when Shell.mojom loses its client.
- function createOpenConnection(
- messagePipeHandle, client, localInterface, remoteInterface) {
- var stubClass = (localInterface && localInterface.stubClass) || EmptyStub;
- var proxyClass =
- (remoteInterface && remoteInterface.proxyClass) || EmptyProxy;
- var proxy = new proxyClass;
- var stub = new stubClass;
- var router = new Router(messagePipeHandle);
- var connection = new BaseConnection(stub, proxy, router);
-
- ProxyBindings(proxy).connection = connection;
- ProxyBindings(proxy).local = connection.local;
- StubBindings(stub).connection = connection;
- StubBindings(proxy).remote = connection.remote;
-
- var clientImpl = client instanceof Function ? client(proxy) : client;
- if (clientImpl)
- StubBindings(stub).delegate = clientImpl;
-
- return connection;
- }
-
- // TODO(hansmuller): remove when Shell.mojom loses its client.
- // Return a message pipe handle.
- function bindProxyClient(clientImpl, localInterface, remoteInterface) {
- var messagePipe = core.createMessagePipe();
- if (messagePipe.result != core.RESULT_OK)
- throw new Error("createMessagePipe failed " + messagePipe.result);
-
- createOpenConnection(
- messagePipe.handle0, clientImpl, localInterface, remoteInterface);
- return messagePipe.handle1;
- }
-
- // TODO(hansmuller): remove when Shell.mojom loses its client.
- // Return a proxy.
- function bindProxyHandle(proxyHandle, localInterface, remoteInterface) {
- if (!core.isHandle(proxyHandle))
- throw new Error("Not a handle " + proxyHandle);
-
- var connection = createOpenConnection(
- proxyHandle, undefined, localInterface, remoteInterface);
- return connection.remote;
- }
-
// Return a handle for a message pipe that's connected to a proxy
// for remoteInterface. Used by generated code for outgoing interface&
// (request) parameters: the caller is given the generated proxy via
@@ -193,10 +147,6 @@ define("mojo/public/js/connection", [
exports.Connection = Connection;
exports.TestConnection = TestConnection;
- // TODO(hansmuller): remove these when Shell.mojom loses its client.
- exports.bindProxyHandle = bindProxyHandle;
- exports.bindProxyClient = bindProxyClient;
-
exports.bindProxy = bindProxy;
exports.bindImpl = bindImpl;
exports.bindHandleToProxy = bindHandleToProxy;

Powered by Google App Engine
This is Rietveld 408576698