onReadyStateChange_(request) {
      if (request.xhr.readyState == 4) {
        if (request.xhr.status == 200) {
          request.result =
              /** @type {Object} */ (JSON.parse(request.xhr.responseText));
          if (request.origin == print_preview.DestinationOrigin.COOKIES &&
              request.result['success']) {
            this.xsrfTokens_[request.result['request']['user']] =
                request.result['xsrf_token'];
          }
        }
        request.callback(request);
      }
    }
/**
     * Called when the ready-state of a XML http request changes.
     * Calls the successCallback with the result or dispatches an ERROR event.
     * @param {!cloudprint.CloudPrintRequest} request Request that was changed.
     * @private
     */
Called when the ready-state of a XML http request changes.
Calls the successCallback with the result or dispatches an ERROR event.
@param {!cloudprint.CloudPrintRequest} request Request that was changed.
@private
Called when the ready - state of a XML http request changes . Calls the successCallback with the result or dispatches an ERROR event . @param { !cloudprint . CloudPrintRequest } request Request that was changed . @private
onReadyStateChange_(request) {
      if (request.xhr.readyState == 4) {
        if (request.xhr.status == 200) {
          request.result =
               (JSON.parse(request.xhr.responseText));
          if (request.origin == print_preview.DestinationOrigin.COOKIES &&
              request.result['success']) {
            this.xsrfTokens_[request.result['request']['user']] =
                request.result['xsrf_token'];
          }
        }
        request.callback(request);
      }
    }
onReadyStateChange_ ( request ) { if ( request . xhr . readyState == 4 ) { if ( request . xhr . status == 200 ) { request . result = ( JSON . parse ( request . xhr . responseText ) ) ; if ( request . origin == print_preview . DestinationOrigin . COOKIES && request . result [ 'success' ] ) { this . xsrfTokens_ [ request . result [ 'request' ] [ 'user' ] ] = request . result [ 'xsrf_token' ] ; } } request . callback ( request ) ; } }
Called when the ready-state of a XML http request changes.
Called when the ready - state of a XML http request changes .
/** @type {Object} */