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..4cb4c7e120e262b3d2ef5dcedc2d692e65289260 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 kMaxIDBMessageSizeInBytes = |
+ IPC::Channel::kMaximumMessageSize - kMaxIDBMessageOverhead; |
+ |
} // namespace content |
#endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_ |