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

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

Issue 1182233003: IndexedDB: Replace use of DOMError with DOMException (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 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 | Annotate | Revision Log
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 30 matching lines...) Expand all
41 #include "modules/indexeddb/IndexedDB.h" 41 #include "modules/indexeddb/IndexedDB.h"
42 #include "platform/heap/Handle.h" 42 #include "platform/heap/Handle.h"
43 #include "public/platform/modules/indexeddb/WebIDBDatabase.h" 43 #include "public/platform/modules/indexeddb/WebIDBDatabase.h"
44 #include "wtf/OwnPtr.h" 44 #include "wtf/OwnPtr.h"
45 #include "wtf/PassOwnPtr.h" 45 #include "wtf/PassOwnPtr.h"
46 #include "wtf/PassRefPtr.h" 46 #include "wtf/PassRefPtr.h"
47 #include "wtf/RefPtr.h" 47 #include "wtf/RefPtr.h"
48 48
49 namespace blink { 49 namespace blink {
50 50
51 class DOMError; 51 class DOMException;
52 class ExceptionState; 52 class ExceptionState;
53 class ExecutionContext; 53 class ExecutionContext;
54 54
55 class MODULES_EXPORT IDBDatabase final 55 class MODULES_EXPORT IDBDatabase final
56 : public RefCountedGarbageCollectedEventTargetWithInlineData<IDBDatabase> 56 : public RefCountedGarbageCollectedEventTargetWithInlineData<IDBDatabase>
57 , public ActiveDOMObject { 57 , public ActiveDOMObject {
58 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(IDBDatabase); 58 REFCOUNTED_GARBAGE_COLLECTED_EVENT_TARGET(IDBDatabase);
59 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBDatabase); 59 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(IDBDatabase);
60 DEFINE_WRAPPERTYPEINFO(); 60 DEFINE_WRAPPERTYPEINFO();
61 public: 61 public:
(...skipping 17 matching lines...) Expand all
79 void deleteObjectStore(const String& name, ExceptionState&); 79 void deleteObjectStore(const String& name, ExceptionState&);
80 void close(); 80 void close();
81 81
82 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); 82 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort);
83 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); 83 DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
84 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 84 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
85 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); 85 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange);
86 86
87 // IDBDatabaseCallbacks 87 // IDBDatabaseCallbacks
88 void onVersionChange(int64_t oldVersion, int64_t newVersion); 88 void onVersionChange(int64_t oldVersion, int64_t newVersion);
89 void onAbort(int64_t, DOMError*); 89 void onAbort(int64_t, DOMException*);
90 void onComplete(int64_t); 90 void onComplete(int64_t);
91 91
92 // ActiveDOMObject 92 // ActiveDOMObject
93 bool hasPendingActivity() const override; 93 bool hasPendingActivity() const override;
94 void stop() override; 94 void stop() override;
95 95
96 // EventTarget 96 // EventTarget
97 const AtomicString& interfaceName() const override; 97 const AtomicString& interfaceName() const override;
98 ExecutionContext* executionContext() const override; 98 ExecutionContext* executionContext() const override;
99 99
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 // Keep track of the versionchange events waiting to be fired on this 150 // Keep track of the versionchange events waiting to be fired on this
151 // database so that we can cancel them if the database closes. 151 // database so that we can cancel them if the database closes.
152 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents; 152 WillBeHeapVector<RefPtrWillBeMember<Event>> m_enqueuedEvents;
153 153
154 Member<IDBDatabaseCallbacks> m_databaseCallbacks; 154 Member<IDBDatabaseCallbacks> m_databaseCallbacks;
155 }; 155 };
156 156
157 } // namespace blink 157 } // namespace blink
158 158
159 #endif // IDBDatabase_h 159 #endif // IDBDatabase_h
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/error-attributes.html ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698