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

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

Issue 18398002: Remove IDBNotFoundError ExceptionCode (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
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 26 matching lines...) Expand all
37 #include "core/dom/Event.h" 37 #include "core/dom/Event.h"
38 #include "core/dom/EventListener.h" 38 #include "core/dom/EventListener.h"
39 #include "core/dom/EventNames.h" 39 #include "core/dom/EventNames.h"
40 #include "core/dom/EventTarget.h" 40 #include "core/dom/EventTarget.h"
41 #include "modules/indexeddb/IDBAny.h" 41 #include "modules/indexeddb/IDBAny.h"
42 #include "modules/indexeddb/IDBCallbacks.h" 42 #include "modules/indexeddb/IDBCallbacks.h"
43 #include "modules/indexeddb/IDBCursor.h" 43 #include "modules/indexeddb/IDBCursor.h"
44 44
45 namespace WebCore { 45 namespace WebCore {
46 46
47 class ExceptionState;
47 class IDBTransaction; 48 class IDBTransaction;
48 49
49 typedef int ExceptionCode;
50
51 class IDBRequest : public ScriptWrappable, public IDBCallbacks, public EventTarg et, public ActiveDOMObject { 50 class IDBRequest : public ScriptWrappable, public IDBCallbacks, public EventTarg et, public ActiveDOMObject {
52 public: 51 public:
53 static PassRefPtr<IDBRequest> create(ScriptExecutionContext*, PassRefPtr<IDB Any> source, IDBTransaction*); 52 static PassRefPtr<IDBRequest> create(ScriptExecutionContext*, PassRefPtr<IDB Any> source, IDBTransaction*);
54 static PassRefPtr<IDBRequest> create(ScriptExecutionContext*, PassRefPtr<IDB Any> source, IDBDatabaseBackendInterface::TaskType, IDBTransaction*); 53 static PassRefPtr<IDBRequest> create(ScriptExecutionContext*, PassRefPtr<IDB Any> source, IDBDatabaseBackendInterface::TaskType, IDBTransaction*);
55 virtual ~IDBRequest(); 54 virtual ~IDBRequest();
56 55
57 PassRefPtr<IDBAny> result(ExceptionCode&) const; 56 PassRefPtr<IDBAny> result(ExceptionState&) const;
58 PassRefPtr<DOMError> error(ExceptionCode&) const; 57 PassRefPtr<DOMError> error(ExceptionState&) const;
59 PassRefPtr<IDBAny> source() const; 58 PassRefPtr<IDBAny> source() const;
60 PassRefPtr<IDBTransaction> transaction() const; 59 PassRefPtr<IDBTransaction> transaction() const;
61 void preventPropagation() { m_preventPropagation = true; } 60 void preventPropagation() { m_preventPropagation = true; }
62 61
63 // Defined in the IDL 62 // Defined in the IDL
64 enum ReadyState { 63 enum ReadyState {
65 PENDING = 1, 64 PENDING = 1,
66 DONE = 2, 65 DONE = 2,
67 EarlyDeath = 3 66 EarlyDeath = 3
68 }; 67 };
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 bool m_didFireUpgradeNeededEvent; 150 bool m_didFireUpgradeNeededEvent;
152 bool m_preventPropagation; 151 bool m_preventPropagation;
153 152
154 EventTargetData m_eventTargetData; 153 EventTargetData m_eventTargetData;
155 DOMRequestState m_requestState; 154 DOMRequestState m_requestState;
156 }; 155 };
157 156
158 } // namespace WebCore 157 } // namespace WebCore
159 158
160 #endif // IDBRequest_h 159 #endif // IDBRequest_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698