blob: 1b88c2a14dd7f4c0810c272377a84e862850f1d1 [file] [log] [blame]
// Copyright 2017 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.
'use strict';
window.isNativeMojoAvailable = () => {
return 'Mojo' in self && 'MojoHandle' in self && 'MojoWatcher' in self &&
'createMessagePipe' in Mojo && 'writeMessage' in MojoHandle.prototype &&
'cancel' in MojoWatcher.prototype;
};
window.isChromeSendAvailable = () => {
return 'chrome' in self && 'send' in chrome;
};