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

Unified Diff: webkit/blob/view_blob_internals_job.cc

Issue 10828252: Support FileSystem URL in File object (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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: webkit/blob/view_blob_internals_job.cc
diff --git a/webkit/blob/view_blob_internals_job.cc b/webkit/blob/view_blob_internals_job.cc
index e5eb6aa8729b2cc91516ec504157d61ac304abb2..934200bee44a5aa81df0014f7eafdc4db96c3472 100644
--- a/webkit/blob/view_blob_internals_job.cc
+++ b/webkit/blob/view_blob_internals_job.cc
@@ -216,7 +216,16 @@ void ViewBlobInternalsJob::GenerateHTMLForBlobData(const BlobData& blob_data,
break;
case BlobData::TYPE_BLOB:
AddHTMLListItem(kType, "blob", out);
- AddHTMLListItem(kURL, item.blob_url.spec(), out);
+ AddHTMLListItem(kURL, item.url.spec(), out);
+ break;
+ case BlobData::TYPE_FILE_FILESYSTEM:
+ AddHTMLListItem(kType, "filesystem", out);
+ AddHTMLListItem(kURL, item.url.spec(), out);
+ if (!item.expected_modification_time.is_null()) {
+ AddHTMLListItem(kModificationTime, UTF16ToUTF8(
+ TimeFormatFriendlyDateAndTime(item.expected_modification_time)),
+ out);
+ }
break;
}
if (item.offset) {

Powered by Google App Engine
This is Rietveld 408576698