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

Side by Side Diff: mojo/public/js/router.js

Issue 708563002: Move mojo/public/js/bindings/ moves to mojo/public/js/ (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Sync again Created 6 years, 1 month 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 unified diff | Download patch
« no previous file with comments | « mojo/public/js/core_unittests.js ('k') | mojo/public/js/struct_unittests.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 define("mojo/public/js/bindings/router", [ 5 define("mojo/public/js/router", [
6 "mojo/public/js/bindings/codec", 6 "mojo/public/js/codec",
7 "mojo/public/js/bindings/connector", 7 "mojo/public/js/connector",
8 "mojo/public/js/bindings/validator", 8 "mojo/public/js/validator",
9 ], function(codec, connector, validator) { 9 ], function(codec, connector, validator) {
10 10
11 function Router(handle, connectorFactory) { 11 function Router(handle, connectorFactory) {
12 if (connectorFactory === undefined) 12 if (connectorFactory === undefined)
13 connectorFactory = connector.Connector; 13 connectorFactory = connector.Connector;
14 this.connector_ = new connectorFactory(handle); 14 this.connector_ = new connectorFactory(handle);
15 this.incomingReceiver_ = null; 15 this.incomingReceiver_ = null;
16 this.nextRequestID_ = 0; 16 this.nextRequestID_ = 0;
17 this.completers_ = new Map(); 17 this.completers_ = new Map();
18 this.payloadValidators_ = []; 18 this.payloadValidators_ = [];
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 TestRouter.prototype.handleInvalidIncomingMessage_ = 129 TestRouter.prototype.handleInvalidIncomingMessage_ =
130 function(message, error) { 130 function(message, error) {
131 this.validationErrorHandler(error); 131 this.validationErrorHandler(error);
132 }; 132 };
133 133
134 var exports = {}; 134 var exports = {};
135 exports.Router = Router; 135 exports.Router = Router;
136 exports.TestRouter = TestRouter; 136 exports.TestRouter = TestRouter;
137 return exports; 137 return exports;
138 }); 138 });
OLDNEW
« no previous file with comments | « mojo/public/js/core_unittests.js ('k') | mojo/public/js/struct_unittests.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698