third_party/libusb/webport/src/libusb-proxy-receiver.js
/**
   * Adds a new hook. Multiple hooks are chained in the FILO order.
   * @param {!GSC.LibusbProxyHook} hook
   */
Adds a new hook. Multiple hooks are chained in the FILO order.
Adds a new hook . Multiple hooks are chained in the FILO order .
addHook(hook) {
    hook.setDelegate(this.getLibusbToJsApiAdaptor_());
    this.hooks_.push(hook);
  }
addHook ( hook ) { hook . setDelegate ( this . getLibusbToJsApiAdaptor_ ( ) ) ; this . hooks_ . push ( hook ) ; }
Adds a new hook.
Adds a new hook .
// If it's the first hook, then chain it with the real implementation, // otherwise - with the previously added hook.