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

Unified Diff: mojo/public/bindings/js/connection.js

Issue 223233002: Mojo: Move mojo/public/bindings/js to mojo/public/js/bindings. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase & restore ordering Created 6 years, 9 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
« no previous file with comments | « mojo/public/bindings/js/codec.js ('k') | mojo/public/bindings/js/connector.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/bindings/js/connection.js
diff --git a/mojo/public/bindings/js/connection.js b/mojo/public/bindings/js/connection.js
deleted file mode 100644
index 96c7419decb9771ac8f34f1af95bcc906b346086..0000000000000000000000000000000000000000
--- a/mojo/public/bindings/js/connection.js
+++ /dev/null
@@ -1,30 +0,0 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-define("mojo/public/bindings/js/connection", [
- "mojo/public/bindings/js/router",
-], function(router) {
-
- function Connection(handle, localFactory, remoteFactory) {
- this.router_ = new router.Router(handle);
- this.remote = new remoteFactory(this.router_);
- this.local = new localFactory(this.remote);
- this.router_.setIncomingReceiver(this.local);
- }
-
- Connection.prototype.close = function() {
- this.router_.close();
- this.router_ = null;
- this.local = null;
- this.remote = null;
- };
-
- Connection.prototype.encounteredError = function() {
- return this.router_.encounteredError();
- };
-
- var exports = {};
- exports.Connection = Connection;
- return exports;
-});
« no previous file with comments | « mojo/public/bindings/js/codec.js ('k') | mojo/public/bindings/js/connector.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698