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

Unified Diff: content/common/indexed_db/indexed_db_constants.h

Issue 1321583002: IndexedDB: Make getAll() requests fail if result exceeds IPC limits (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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: content/common/indexed_db/indexed_db_constants.h
diff --git a/content/common/indexed_db/indexed_db_constants.h b/content/common/indexed_db/indexed_db_constants.h
index b6c6363cdc35942859b6b70ac81606d975546604..cffc2e256867e644a354940230f5fdb360ffd5da 100644
--- a/content/common/indexed_db/indexed_db_constants.h
+++ b/content/common/indexed_db/indexed_db_constants.h
@@ -5,12 +5,17 @@
#ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_
#define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_
+#include "ipc/ipc_channel.h"
+
namespace content {
const int32 kNoDatabase = -1;
const size_t kMaxIDBMessageOverhead = 1024 * 1024; // 1MB; arbitrarily chosen.
+const size_t kMaxIDBValueSizeInBytes =
cmumford 2015/08/26 22:49:50 Instead of "Value" how about "Message" - since get
+ IPC::Channel::kMaximumMessageSize - kMaxIDBMessageOverhead;
+
} // namespace content
#endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_
« no previous file with comments | « content/child/indexed_db/indexed_db_dispatcher.cc ('k') | content/test/data/indexeddb/getall_max_message_size.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698