Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Side by Side Diff: content/browser/indexed_db/indexed_db_metadata.cc

Issue 2370643004: Port messages sent by WebIDBFactoryImpl to Mojo. (Closed)
Patch Set: Address last nits and fix leaks in unit tests. Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 #include "content/browser/indexed_db/indexed_db_metadata.h"
6
7 namespace content {
8
9 IndexedDBIndexMetadata::IndexedDBIndexMetadata() = default;
10
11 IndexedDBIndexMetadata::IndexedDBIndexMetadata(const base::string16& name,
12 int64_t 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) {}
21
22 IndexedDBIndexMetadata::IndexedDBIndexMetadata(
23 const IndexedDBIndexMetadata& other) = default;
24
25 IndexedDBIndexMetadata::~IndexedDBIndexMetadata() = default;
26
27 IndexedDBIndexMetadata& IndexedDBIndexMetadata::operator=(
28 const IndexedDBIndexMetadata& other) = default;
29
30 IndexedDBObjectStoreMetadata::IndexedDBObjectStoreMetadata(
31 const base::string16& name,
32 int64_t id,
33 const IndexedDBKeyPath& key_path,
34 bool auto_increment,
35 int64_t max_index_id)
36 : name(name),
37 id(id),
38 key_path(key_path),
39 auto_increment(auto_increment),
40 max_index_id(max_index_id) {}
41
42 IndexedDBObjectStoreMetadata::IndexedDBObjectStoreMetadata() = default;
43
44 IndexedDBObjectStoreMetadata::IndexedDBObjectStoreMetadata(
45 const IndexedDBObjectStoreMetadata& other) = default;
46
47 IndexedDBObjectStoreMetadata::~IndexedDBObjectStoreMetadata() = default;
48
49 IndexedDBObjectStoreMetadata& IndexedDBObjectStoreMetadata::operator=(
50 const IndexedDBObjectStoreMetadata& other) = default;
51
52 IndexedDBDatabaseMetadata::IndexedDBDatabaseMetadata() : version(NO_VERSION) {}
53
54 IndexedDBDatabaseMetadata::IndexedDBDatabaseMetadata(
55 const base::string16& name,
56 int64_t id,
57 int64_t version,
58 int64_t max_object_store_id)
59 : name(name),
60 id(id),
61 version(version),
62 max_object_store_id(max_object_store_id) {}
63
64 IndexedDBDatabaseMetadata::IndexedDBDatabaseMetadata(
65 const IndexedDBDatabaseMetadata& other) = default;
66
67 IndexedDBDatabaseMetadata::~IndexedDBDatabaseMetadata() = default;
68
69 IndexedDBDatabaseMetadata& IndexedDBDatabaseMetadata::operator=(
70 IndexedDBDatabaseMetadata& other) = default;
71
72 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/indexed_db/indexed_db_metadata.h ('k') | content/browser/indexed_db/indexed_db_transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698