1 // Copyright (c) 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 #include "content/browser/indexed_db/indexed_db_metadata.h"
9 IndexedDBIndexMetadata::IndexedDBIndexMetadata() = default;
11 IndexedDBIndexMetadata::IndexedDBIndexMetadata(const base::string16
& name
,
13 const IndexedDBKeyPath
& key_path
,
20 multi_entry(multi_entry
) {
23 IndexedDBIndexMetadata::IndexedDBIndexMetadata(
24 const IndexedDBIndexMetadata
& other
) = default;
26 IndexedDBIndexMetadata::~IndexedDBIndexMetadata() = default;
28 IndexedDBIndexMetadata
& IndexedDBIndexMetadata::operator=(
29 const IndexedDBIndexMetadata
& other
) = default;
31 IndexedDBObjectStoreMetadata::IndexedDBObjectStoreMetadata(
32 const base::string16
& name
,
34 const IndexedDBKeyPath
& key_path
,
40 auto_increment(auto_increment
),
41 max_index_id(max_index_id
) {}
43 IndexedDBObjectStoreMetadata::IndexedDBObjectStoreMetadata() = default;
45 IndexedDBObjectStoreMetadata::IndexedDBObjectStoreMetadata(
46 const IndexedDBObjectStoreMetadata
& other
) = default;
48 IndexedDBObjectStoreMetadata::~IndexedDBObjectStoreMetadata() = default;
50 IndexedDBObjectStoreMetadata
& IndexedDBObjectStoreMetadata::operator=(
51 const IndexedDBObjectStoreMetadata
& other
) = default;
53 IndexedDBDatabaseMetadata::IndexedDBDatabaseMetadata()
54 : int_version(NO_INT_VERSION
) {}
56 IndexedDBDatabaseMetadata::IndexedDBDatabaseMetadata(
57 const base::string16
& name
,
59 const base::string16
& version
,
61 int64 max_object_store_id
)
65 int_version(int_version
),
66 max_object_store_id(max_object_store_id
) {}
68 IndexedDBDatabaseMetadata::IndexedDBDatabaseMetadata(
69 const IndexedDBDatabaseMetadata
& other
) = default;
71 IndexedDBDatabaseMetadata::~IndexedDBDatabaseMetadata() = default;
73 IndexedDBDatabaseMetadata
& IndexedDBDatabaseMetadata::operator=(
74 IndexedDBDatabaseMetadata
& other
) = default;
76 } // namespace content