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: third_party/WebKit/Source/platform/blob/BlobData.h

Issue 2717583003: [BlobStorage] Enforcing renderer constraints to prevent broken blobs (Closed)
Patch Set: moving to dchecks Created 3 years, 10 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 4e6aa56e8e887dbd2e7bc8a3c41879400f0531fd..0c2a6eac281ad6219d8be6e2946557e84c1c706d 100644
--- a/third_party/WebKit/Source/platform/blob/BlobData.h
+++ b/third_party/WebKit/Source/platform/blob/BlobData.h
@@ -185,6 +185,10 @@ class PLATFORM_EXPORT BlobData {
// determined.
long long length() const;
+ bool isSingleUnknownSizeFile() const {
+ return m_fileComposition == FileCompositionStatus::SINGLE_UNKNOWN_SIZE_FILE;
+ }
+
private:
FRIEND_TEST_ALL_PREFIXES(BlobDataTest, Consolidation);
@@ -228,6 +232,8 @@ class PLATFORM_EXPORT BlobDataHandle
String type() const { return m_type.isolatedCopy(); }
unsigned long long size() const { return m_size; }
+ bool isSingleUnknownSizeFile() const { return m_isSingleUnknownSizeFile; }
+
~BlobDataHandle();
private:
@@ -238,6 +244,7 @@ class PLATFORM_EXPORT BlobDataHandle
const String m_uuid;
const String m_type;
const long long m_size;
+ const bool m_isSingleUnknownSizeFile;
};
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698