1 // Copyright 2015 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_database_error.h"
9 IndexedDBDatabaseError::IndexedDBDatabaseError(uint16 code
) : code_(code
) {
12 IndexedDBDatabaseError::IndexedDBDatabaseError() = default;
14 IndexedDBDatabaseError::IndexedDBDatabaseError(uint16 code
, const char* message
)
15 : code_(code
), message_(base::ASCIIToUTF16(message
)) {
18 IndexedDBDatabaseError::IndexedDBDatabaseError(uint16 code
,
19 const base::string16
& message
)
20 : code_(code
), message_(message
) {
23 IndexedDBDatabaseError::~IndexedDBDatabaseError() = default;
25 IndexedDBDatabaseError
& IndexedDBDatabaseError::operator=(
26 const IndexedDBDatabaseError
& rhs
) = default;
28 } // namespace content