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

Unified Diff: mojo/public/js/interface_types.js

Issue 2796253002: Associated Message Validation (Closed)
Patch Set: Formatting. Add braces to if statements in validateMessageHeader Created 3 years, 8 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: mojo/public/js/interface_types.js
diff --git a/mojo/public/js/interface_types.js b/mojo/public/js/interface_types.js
index e8ed37ae64a1ff78f415ddd25f55c738098485be..e3c06559792edcb2c2037cb2afaa73416688937b 100644
--- a/mojo/public/js/interface_types.js
+++ b/mojo/public/js/interface_types.js
@@ -31,6 +31,15 @@ define("mojo/public/js/interface_types", [
this.version = 0;
};
+ function AssociatedInterfacePtrInfo(interfaceEndpointHandle, version) {
+ this.interfaceEndpointHandle = interfaceEndpointHandle;
+ this.version = version;
+ }
+
+ AssociatedInterfacePtrInfo.prototype.isValid = function() {
+ return this.interfaceEndpointHandle.isValid();
+ };
+
// ---------------------------------------------------------------------------
function InterfaceRequest(handle) {
@@ -49,6 +58,14 @@ define("mojo/public/js/interface_types", [
this.handle = null;
};
+ function AssociatedInterfaceRequest(interfaceEndpointHandle) {
+ this.interfaceEndpointHandle = interfaceEndpointHandle;
+ }
+
+ AssociatedInterfaceRequest.prototype.isValid = function() {
+ return this.interfaceEndpointHandle.isValid();
+ };
+
function isMasterInterfaceId(interfaceId) {
return interfaceId === kMasterInterfaceId;
}
@@ -60,6 +77,8 @@ define("mojo/public/js/interface_types", [
var exports = {};
exports.InterfacePtrInfo = InterfacePtrInfo;
exports.InterfaceRequest = InterfaceRequest;
+ exports.AssociatedInterfacePtrInfo = AssociatedInterfacePtrInfo;
+ exports.AssociatedInterfaceRequest = AssociatedInterfaceRequest;
exports.isMasterInterfaceId = isMasterInterfaceId;
exports.isValidInterfaceId = isValidInterfaceId;
exports.kInvalidInterfaceId = kInvalidInterfaceId;

Powered by Google App Engine
This is Rietveld 408576698