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

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

Issue 236783002: Pass NewScriptState to idbAnyToScriptValue() and idbKeyToScriptValue() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 8 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 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 virtual ~IDBDatabase(); 59 virtual ~IDBDatabase();
60 60
61 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat a; } 61 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat a; }
62 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); 62 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&);
63 void indexDeleted(int64_t objectStoreId, int64_t indexId); 63 void indexDeleted(int64_t objectStoreId, int64_t indexId);
64 void transactionCreated(IDBTransaction*); 64 void transactionCreated(IDBTransaction*);
65 void transactionFinished(const IDBTransaction*); 65 void transactionFinished(const IDBTransaction*);
66 66
67 // Implement the IDL 67 // Implement the IDL
68 const String& name() const { return m_metadata.name; } 68 const String& name() const { return m_metadata.name; }
69 ScriptValue version(ExecutionContext*) const; 69 ScriptValue version(NewScriptState*) const;
70 PassRefPtr<DOMStringList> objectStoreNames() const; 70 PassRefPtr<DOMStringList> objectStoreNames() const;
71 71
72 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const Dicti onary&, ExceptionState&); 72 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const Dicti onary&, ExceptionState&);
73 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const IDBKe yPath&, bool autoIncrement, ExceptionState&); 73 PassRefPtr<IDBObjectStore> createObjectStore(const String& name, const IDBKe yPath&, bool autoIncrement, ExceptionState&);
74 PassRefPtr<IDBTransaction> transaction(ExecutionContext* context, PassRefPtr <DOMStringList> scope, const String& mode, ExceptionState& exceptionState) { ret urn transaction(context, *scope, mode, exceptionState); } 74 PassRefPtr<IDBTransaction> transaction(ExecutionContext* context, PassRefPtr <DOMStringList> scope, const String& mode, ExceptionState& exceptionState) { ret urn transaction(context, *scope, mode, exceptionState); }
75 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const Vector<Strin g>&, const String& mode, ExceptionState&); 75 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const Vector<Strin g>&, const String& mode, ExceptionState&);
76 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const String&, con st String& mode, ExceptionState&); 76 PassRefPtr<IDBTransaction> transaction(ExecutionContext*, const String&, con st String& mode, ExceptionState&);
77 void deleteObjectStore(const String& name, ExceptionState&); 77 void deleteObjectStore(const String& name, ExceptionState&);
78 void close(); 78 void close();
79 79
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 // Keep track of the versionchange events waiting to be fired on this 145 // Keep track of the versionchange events waiting to be fired on this
146 // database so that we can cancel them if the database closes. 146 // database so that we can cancel them if the database closes.
147 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; 147 WillBePersistentHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents;
148 148
149 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks; 149 RefPtr<IDBDatabaseCallbacks> m_databaseCallbacks;
150 }; 150 };
151 151
152 } // namespace WebCore 152 } // namespace WebCore
153 153
154 #endif // IDBDatabase_h 154 #endif // IDBDatabase_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBCursorWithValue.idl ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698