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

Unified Diff: third_party/WebKit/Source/platform/blob/BlobData.h

Issue 2892953006: WIP POC blob transport over mojo
Patch Set: pass mojo blobs over ipc Created 3 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: third_party/WebKit/Source/platform/blob/BlobData.h
diff --git a/third_party/WebKit/Source/platform/blob/BlobData.h b/third_party/WebKit/Source/platform/blob/BlobData.h
index 5774181bd59dc7f230dd99a9f7627bfc1f3a840d..41fc37bda6f85de81af4ab9ef7d59bc82da7dae8 100644
--- a/third_party/WebKit/Source/platform/blob/BlobData.h
+++ b/third_party/WebKit/Source/platform/blob/BlobData.h
@@ -38,6 +38,7 @@
#include "platform/wtf/Forward.h"
#include "platform/wtf/ThreadSafeRefCounted.h"
#include "platform/wtf/text/WTFString.h"
+#include "public/platform/blobs.mojom-blink.h"
namespace blink {
@@ -242,6 +243,7 @@ class PLATFORM_EXPORT BlobDataHandle
String Uuid() const { return uuid_.IsolatedCopy(); }
String GetType() const { return type_.IsolatedCopy(); }
unsigned long long size() const { return size_; }
+ storage::mojom::blink::Blob* blob() const { return blob_.get(); }
bool IsSingleUnknownSizeFile() const { return is_single_unknown_size_file_; }
@@ -256,6 +258,7 @@ class PLATFORM_EXPORT BlobDataHandle
const String type_;
const long long size_;
const bool is_single_unknown_size_file_;
+ storage::mojom::blink::BlobPtr blob_;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/blob/BlobBytesProvider.cpp ('k') | third_party/WebKit/Source/platform/blob/BlobData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698