```js
function HttpRequest() {
  return window.XMLHttpRequest;
}

class HttpBackend {
  constructor(XMLHttpRequest) {
    // ...
  }
}
```

We need a cleaner way for this. See https://github.com/angular/di.js/issues/21 and https://github.com/angular/di.js/issues/22