Supervised user import: Listen for profile creation/deletion
[chromium-blink-merge.git] / content / browser / indexed_db / indexed_db_metadata.cc
blob92c4c318c5ac141575f75cb8a178c71691c22d45
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"
7 namespace content {
9 IndexedDBIndexMetadata::IndexedDBIndexMetadata() = default;
11 IndexedDBIndexMetadata::IndexedDBIndexMetadata(const base::string16& name,
12 int64 id,
13 const IndexedDBKeyPath& key_path,
14 bool unique,
15 bool multi_entry)
16 : name(name),
17 id(id),
18 key_path(key_path),
19 unique(unique),
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,
33 int64 id,
34 const IndexedDBKeyPath& key_path,
35 bool auto_increment,
36 int64 max_index_id)
37 : name(name),
38 id(id),
39 key_path(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,
58 int64 id,
59 const base::string16& version,
60 int64 int_version,
61 int64 max_object_store_id)
62 : name(name),
63 id(id),
64 version(version),
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