This moves the definition of the mojom URLRequest and URLResponse
objects into the SDK at //mojo/public/interfaces/network/. These are
used directly by the shell and have a special place in the system. This
patch does the minimal amount of import/include updating to get tests
passing but doesn't fully update everything - in particular it
doesn't update all the C++ code that #includes url_loader.mojom.h for
the URLRequest or URLResponse definitions to #include the more specific
mojom.h files, or the equivalent in other languages. I'll do that in a
follow-up to minimize churn.
R=viettrungluu@chromium.org
Review URL: https://codereview.chromium.org/1129063008
Rather than use a separate thread for every CopyToPipe job, we no use a
thread pool. It's not clear from the trace whether this is much faster,
but it makes the trace look much prettier.
R=rafaelw@chromium.org
Review URL: https://codereview.chromium.org/1010433009
This CL makes two changes to SkyShell's HTTP stack:
1) It introduces a disk cache so that responses can be loaded off disk instead
of off the network.
2) It makes different instances of NetworkServiceImpl share the same
OkHttpContext. Specifically, this means that network requests initiated from
Dart share the same cache and connection pool as requests initiated from C++.
R=ojan@chromium.org
Review URL: https://codereview.chromium.org/1006143003
However WebView::close() no longer crashes. close() is never called
in MojoShell since mojo can't shutdown yet.
I tried closing the existing WebView and replacing it
but somehow that caused it to only draw red. After a while
of looking at this with abarth we decided to just load into
the same WebView for now.
Eventually we should do something smarter where we start the
provisional load and only replace the webview once the new one is
ready, but that's a later CL.
R=abarth@chromium.org
BUG=
Review URL: https://codereview.chromium.org/952273003
This CL is the beginnings of an implementation of url_loader.mojom using the
OkHttp library. OkHttp is a relatively simple HTTP client library for Android
that implements HTTP/1.1 and HTTP/2.0. We might want to use OkHttp to bootstrap
into a more full-featured network_service implementation based on //net.
R=jamesr@chromium.org
Review URL: https://codereview.chromium.org/930673002