summaryrefslogtreecommitdiffstats
path: root/content/browser/indexed_db/indexed_db_metadata.cc
blob: 80d31424c5fe69dda84ed63d483068274836bfe2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
// Copyright (c) 2013 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "content/browser/indexed_db/indexed_db_metadata.h"

namespace content {

IndexedDBObjectStoreMetadata::IndexedDBObjectStoreMetadata(
    const string16& name,
    int64 id,
    const IndexedDBKeyPath& key_path,
    bool auto_increment,
    int64 max_index_id)
    : name(name),
      id(id),
      key_path(key_path),
      auto_increment(auto_increment),
      max_index_id(max_index_id) {}

IndexedDBObjectStoreMetadata::IndexedDBObjectStoreMetadata() {}
IndexedDBObjectStoreMetadata::~IndexedDBObjectStoreMetadata() {}

IndexedDBDatabaseMetadata::IndexedDBDatabaseMetadata()
    : int_version(NO_INT_VERSION) {}
IndexedDBDatabaseMetadata::IndexedDBDatabaseMetadata(const string16& name,
                                                     int64 id,
                                                     const string16& version,
                                                     int64 int_version,
                                                     int64 max_object_store_id)
    : name(name),
      id(id),
      version(version),
      int_version(int_version),
      max_object_store_id(max_object_store_id) {}

IndexedDBDatabaseMetadata::~IndexedDBDatabaseMetadata() {}

}  // namespace content