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

Unified Diff: content/browser/indexed_db/indexed_db_database_error.cc

Issue 932143003: IndexedDB: Report QuotaExceededError when commit fails due to disk full (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Move IndexedDBDatabaseError impl to cc file Created 5 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: content/browser/indexed_db/indexed_db_database_error.cc
diff --git a/content/browser/indexed_db/indexed_db_database_error.cc b/content/browser/indexed_db/indexed_db_database_error.cc
new file mode 100644
index 0000000000000000000000000000000000000000..ff05a779392a23568275cacddcb6c843f952a490
--- /dev/null
+++ b/content/browser/indexed_db/indexed_db_database_error.cc
@@ -0,0 +1,28 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/browser/indexed_db/indexed_db_database_error.h"
+
+namespace content {
+
+IndexedDBDatabaseError::IndexedDBDatabaseError(uint16 code) : code_(code) {
+}
+
+IndexedDBDatabaseError::IndexedDBDatabaseError() = default;
+
+IndexedDBDatabaseError::IndexedDBDatabaseError(uint16 code, const char* message)
+ : code_(code), message_(base::ASCIIToUTF16(message)) {
+}
+
+IndexedDBDatabaseError::IndexedDBDatabaseError(uint16 code,
+ const base::string16& message)
+ : code_(code), message_(message) {
+}
+
+IndexedDBDatabaseError::~IndexedDBDatabaseError() = default;
+
+IndexedDBDatabaseError& IndexedDBDatabaseError::operator=(
+ const IndexedDBDatabaseError& rhs) = default;
+
+} // namespace content
« no previous file with comments | « content/browser/indexed_db/indexed_db_database_error.h ('k') | content/browser/indexed_db/indexed_db_transaction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698