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

Unified Diff: webkit/blob/view_blob_internals_job.cc

Issue 10696135: Offload disk accesses to WorkerPool in ExtensionProtocolHandler (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | « webkit/blob/view_blob_internals_job.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/blob/view_blob_internals_job.cc
===================================================================
--- webkit/blob/view_blob_internals_job.cc (revision 147715)
+++ webkit/blob/view_blob_internals_job.cc (working copy)
@@ -15,6 +15,7 @@
#include "base/stringprintf.h"
#include "base/utf_string_conversions.h"
#include "net/base/escape.h"
+#include "net/base/net_errors.h"
#include "net/url_request/url_request.h"
#include "webkit/blob/blob_data.h"
#include "webkit/blob/blob_storage_controller.h"
@@ -142,9 +143,11 @@
StartAsync();
}
-bool ViewBlobInternalsJob::GetData(std::string* mime_type,
- std::string* charset,
- std::string* data) const {
+int ViewBlobInternalsJob::GetData(
+ std::string* mime_type,
+ std::string* charset,
+ std::string* data,
+ const net::CompletionCallback& callback) const {
mime_type->assign("text/html");
charset->assign("UTF-8");
@@ -155,7 +158,7 @@
else
GenerateHTML(data);
EndHTML(data);
- return true;
+ return net::OK;
}
void ViewBlobInternalsJob::GenerateHTML(std::string* out) const {
« no previous file with comments | « webkit/blob/view_blob_internals_job.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698