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

Side by Side Diff: content/common/indexed_db/indexed_db_database_error.cc

Issue 2320213004: Port IndexedDB open() and database callbacks to Mojo. (Closed)
Patch Set: Make DatabaseClient an associated interface. Created 4 years, 3 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
1 // Copyright 2015 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/browser/indexed_db/indexed_db_database_error.h" 5 #include "content/common/indexed_db/indexed_db_database_error.h"
6
7 #include "base/strings/utf_string_conversions.h"
6 8
7 namespace content { 9 namespace content {
8 10
9 IndexedDBDatabaseError::IndexedDBDatabaseError(uint16_t code) : code_(code) {} 11 IndexedDBDatabaseError::IndexedDBDatabaseError(uint16_t code) : code_(code) {}
10 12
11 IndexedDBDatabaseError::IndexedDBDatabaseError() = default; 13 IndexedDBDatabaseError::IndexedDBDatabaseError() = default;
12 14
13 IndexedDBDatabaseError::IndexedDBDatabaseError(uint16_t code, 15 IndexedDBDatabaseError::IndexedDBDatabaseError(uint16_t code,
14 const char* message) 16 const char* message)
15 : code_(code), message_(base::ASCIIToUTF16(message)) {} 17 : code_(code), message_(base::ASCIIToUTF16(message)) {}
16 18
17 IndexedDBDatabaseError::IndexedDBDatabaseError(uint16_t code, 19 IndexedDBDatabaseError::IndexedDBDatabaseError(uint16_t code,
18 const base::string16& message) 20 const base::string16& message)
19 : code_(code), message_(message) {} 21 : code_(code), message_(message) {}
20 22
21 IndexedDBDatabaseError::~IndexedDBDatabaseError() = default; 23 IndexedDBDatabaseError::~IndexedDBDatabaseError() = default;
22 24
23 IndexedDBDatabaseError& IndexedDBDatabaseError::operator=( 25 IndexedDBDatabaseError& IndexedDBDatabaseError::operator=(
24 const IndexedDBDatabaseError& rhs) = default; 26 const IndexedDBDatabaseError& rhs) = default;
25 27
26 } // namespace content 28 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698