+void FetchManifestDoneCallback(
+ scoped_ptr<ManifestFetcher> fetcher,
+ const FetchManifestCallback& callback,
+ const blink::WebURLResponse& response,
+ const std::string& data) {
+ // |fetcher| will be autodeleted here as it is going out of scope.
+ callback.Run(response, data);
+}
+
+void FetchManifest(blink::WebView* view, const GURL& url,
+ const FetchManifestCallback& callback) {
+ scoped_ptr<ManifestFetcher> fetcher(new ManifestFetcher(url));
+
+ fetcher->Start(view->mainFrame(),
+ base::Bind(&FetchManifestDoneCallback,
+ base::Passed(&fetcher),
+ callback));
+}
+
+void SetMockGamepadProvider(scoped_ptr<RendererGamepadProvider> provider) {