OLD | NEW |
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_ |
OLD | NEW |