Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / content / common / indexed_db / indexed_db_constants.h
blob4cb4c7e120e262b3d2ef5dcedc2d692e65289260
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_
6 #define CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_
8 #include "ipc/ipc_channel.h"
10 namespace content {
12 const int32 kNoDatabase = -1;
14 const size_t kMaxIDBMessageOverhead = 1024 * 1024; // 1MB; arbitrarily chosen.
16 const size_t kMaxIDBMessageSizeInBytes =
17 IPC::Channel::kMaximumMessageSize - kMaxIDBMessageOverhead;
19 } // namespace content
21 #endif // CONTENT_COMMON_INDEXED_DB_INDEXED_DB_CONSTANTS_H_