Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1097)

Unified Diff: components/nacl/renderer/manifest_downloader.cc

Issue 276423003: Pepper: Nexe downloading out of the trusted plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: components/nacl/renderer/manifest_downloader.cc
diff --git a/components/nacl/renderer/manifest_downloader.cc b/components/nacl/renderer/manifest_downloader.cc
index fec18d7571b087eacb52583fa822e5e03904a1c5..61e72b02f777b64823ddffd0fe0da7e64dc1fade 100644
--- a/components/nacl/renderer/manifest_downloader.cc
+++ b/components/nacl/renderer/manifest_downloader.cc
@@ -22,16 +22,21 @@ const size_t kNaClManifestMaxFileBytes = 1024 * 1024;
} // namespace
ManifestDownloader::ManifestDownloader(
+ scoped_ptr<blink::WebURLLoader> url_loader,
bool is_installed,
ManifestDownloaderCallback cb)
- : is_installed_(is_installed),
+ : url_loader_(url_loader.Pass()),
+ is_installed_(is_installed),
cb_(cb),
status_code_(-1),
pp_nacl_error_(PP_NACL_ERROR_LOAD_SUCCESS) {
CHECK(!cb.is_null());
}
-ManifestDownloader::~ManifestDownloader() {
+ManifestDownloader::~ManifestDownloader() { }
+
+void ManifestDownloader::Load(const blink::WebURLRequest& request) {
+ url_loader_->loadAsynchronously(request, this);
}
void ManifestDownloader::didReceiveResponse(

Powered by Google App Engine
This is Rietveld 408576698