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

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.h

Issue 2904603003: [IndexedDB] Adding txn, value, and key size metrics (Closed)
Patch Set: made sure size is 0'd out 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/modules/indexeddb/IDBValueWrapping.h
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.h b/third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.h
index a1e806e24593860611a6906341e6d740963b856d..b00045eb52bc58b9ccec8afe1d77869e266c776f 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.h
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBValueWrapping.h
@@ -111,6 +111,8 @@ class MODULES_EXPORT IDBValueWrapper {
return blob_info_;
}
+ size_t DataLengthBeforeWrapInBytes() { return original_data_length_; }
+
// Default threshold for WrapIfBiggerThan().
//
// This should be tuned to achieve a compromise between short-term IndexedDB
@@ -132,6 +134,7 @@ class MODULES_EXPORT IDBValueWrapper {
RefPtr<BlobDataHandle> wrapper_handle_;
Vector<WebBlobInfo> blob_info_;
Vector<char> wire_bytes_;
+ size_t original_data_length_ = 0;
#if DCHECK_IS_ON()
bool had_exception_ = false;
bool wrap_called_ = false;

Powered by Google App Engine
This is Rietveld 408576698