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

Side by Side 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: Rename constant Created 5 years, 3 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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_ 5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_ 6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_
7 7
8 #include "ipc/ipc_channel.h"
9
8 namespace content { 10 namespace content {
9 11
10 const int32 kNoDatabase = -1; 12 const int32 kNoDatabase = -1;
11 13
12 const size_t kMaxIDBMessageOverhead = 1024 * 1024; // 1MB; arbitrarily chosen. 14 const size_t kMaxIDBMessageOverhead = 1024 * 1024; // 1MB; arbitrarily chosen.
13 15
16 const size_t kMaxIDBMessageSizeInBytes =
17 IPC::Channel::kMaximumMessageSize - kMaxIDBMessageOverhead;
18
14 } // namespace content 19 } // namespace content
15 20
16 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_ 21 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_
OLDNEW
« 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