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

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
« no previous file with comments | « components/nacl/renderer/manifest_downloader.h ('k') | components/nacl/renderer/nexe_load_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/nacl/renderer/manifest_downloader.cc
diff --git a/components/nacl/renderer/manifest_downloader.cc b/components/nacl/renderer/manifest_downloader.cc
index 39d6fc5298ad43b84f8b91368f1552d4e9642686..2ea1171cf691b78e70825f07d80bd4d2725e7e0c 100644
--- a/components/nacl/renderer/manifest_downloader.cc
+++ b/components/nacl/renderer/manifest_downloader.cc
@@ -15,16 +15,21 @@
namespace nacl {
ManifestDownloader::ManifestDownloader(
+ scoped_ptr<blink::WebURLLoader> url_loader,
bool is_installed,
- ManifestDownloaderCallback cb)
- : is_installed_(is_installed),
+ Callback cb)
+ : 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(
« no previous file with comments | « components/nacl/renderer/manifest_downloader.h ('k') | components/nacl/renderer/nexe_load_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698