OLD | NEW |
| (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 #ifndef CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_ERROR_H_ | |
6 #define CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_ERROR_H_ | |
7 | |
8 #include <stdint.h> | |
9 | |
10 #include "base/strings/string16.h" | |
11 #include "base/strings/utf_string_conversions.h" | |
12 | |
13 namespace content { | |
14 | |
15 class IndexedDBDatabaseError { | |
16 public: | |
17 IndexedDBDatabaseError(); | |
18 explicit IndexedDBDatabaseError(uint16_t code); | |
19 IndexedDBDatabaseError(uint16_t code, const char* message); | |
20 IndexedDBDatabaseError(uint16_t code, const base::string16& message); | |
21 ~IndexedDBDatabaseError(); | |
22 | |
23 IndexedDBDatabaseError& operator=(const IndexedDBDatabaseError& rhs); | |
24 | |
25 uint16_t code() const { return code_; } | |
26 const base::string16& message() const { return message_; } | |
27 | |
28 private: | |
29 uint16_t code_ = 0; | |
30 base::string16 message_; | |
31 }; | |
32 | |
33 } // namespace content | |
34 | |
35 #endif // CONTENT_BROWSER_INDEXED_DB_INDEXED_DB_DATABASE_ERROR_H_ | |
OLD | NEW |