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

Side by Side Diff: Source/modules/indexeddb/IDBDatabase.h

Issue 18580013: IndexedDB: Make DOMException messages more useful. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Specific message for inactive transactions Created 7 years, 5 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 | Annotate | Revision Log
« no previous file with comments | « Source/modules/indexeddb/IDBCursor.cpp ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 int64_t findObjectStoreId(const String& name) const; 100 int64_t findObjectStoreId(const String& name) const;
101 bool containsObjectStore(const String& name) const 101 bool containsObjectStore(const String& name) const
102 { 102 {
103 return findObjectStoreId(name) != IDBObjectStoreMetadata::InvalidId; 103 return findObjectStoreId(name) != IDBObjectStoreMetadata::InvalidId;
104 } 104 }
105 105
106 IDBDatabaseBackendInterface* backend() const { return m_backend.get(); } 106 IDBDatabaseBackendInterface* backend() const { return m_backend.get(); }
107 107
108 static int64_t nextTransactionId(); 108 static int64_t nextTransactionId();
109 109
110 static const char notFoundErrorMessage[]; 110 static const char indexDeletedErrorMessage[];
111 static const char isKeyCursorErrorMessage[];
112 static const char noKeyOrKeyRangeErrorMessage[];
113 static const char noSuchIndexErrorMessage[];
114 static const char noSuchObjectStoreErrorMessage[];
115 static const char noValueErrorMessage[];
116 static const char notValidKeyErrorMessage[];
117 static const char notVersionChangeTransactionErrorMessage[];
118 static const char objectStoreDeletedErrorMessage[];
119 static const char requestNotFinishedErrorMessage[];
120 static const char sourceDeletedErrorMessage[];
121 static const char transactionFinishedErrorMessage[];
122 static const char transactionInactiveErrorMessage[];
111 123
112 using RefCounted<IDBDatabase>::ref; 124 using RefCounted<IDBDatabase>::ref;
113 using RefCounted<IDBDatabase>::deref; 125 using RefCounted<IDBDatabase>::deref;
114 126
115 private: 127 private:
116 IDBDatabase(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendInterface> , PassRefPtr<IDBDatabaseCallbacks>); 128 IDBDatabase(ScriptExecutionContext*, PassRefPtr<IDBDatabaseBackendInterface> , PassRefPtr<IDBDatabaseCallbacks>);
117 129
118 // EventTarget 130 // EventTarget
119 virtual void refEventTarget() { ref(); } 131 virtual void refEventTarget() { ref(); }
120 virtual void derefEventTarget() { deref(); } 132 virtual void derefEventTarget() { deref(); }
(...skipping 16 matching lines...) Expand all
137 // Keep track of the versionchange events waiting to be fired on this 149 // Keep track of the versionchange events waiting to be fired on this
138 // database so that we can cancel them if the database closes. 150 // database so that we can cancel them if the database closes.
139 Vector<RefPtr<Event> > m_enqueuedEvents; 151 Vector<RefPtr<Event> > m_enqueuedEvents;
140 152
141 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; 153 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks;
142 }; 154 };
143 155
144 } // namespace WebCore 156 } // namespace WebCore
145 157
146 #endif // IDBDatabase_h 158 #endif // IDBDatabase_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBCursor.cpp ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698