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

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

Issue 258143002: Oilpan: move DOM string collection objects to the Oilpan heap. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebase + final adjustments Created 6 years, 7 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
« no previous file with comments | « Source/modules/indexeddb/IDBAny.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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 65
66 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat a; } 66 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat a; }
67 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); 67 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&);
68 void indexDeleted(int64_t objectStoreId, int64_t indexId); 68 void indexDeleted(int64_t objectStoreId, int64_t indexId);
69 void transactionCreated(IDBTransaction*); 69 void transactionCreated(IDBTransaction*);
70 void transactionFinished(const IDBTransaction*); 70 void transactionFinished(const IDBTransaction*);
71 71
72 // Implement the IDL 72 // Implement the IDL
73 const String& name() const { return m_metadata.name; } 73 const String& name() const { return m_metadata.name; }
74 ScriptValue version(ScriptState*) const; 74 ScriptValue version(ScriptState*) const;
75 PassRefPtr<DOMStringList> objectStoreNames() const; 75 PassRefPtrWillBeRawPtr<DOMStringList> objectStoreNames() const;
76 76
77 PassRefPtrWillBeRawPtr<IDBObjectStore> createObjectStore(const String& name, const Dictionary&, ExceptionState&); 77 PassRefPtrWillBeRawPtr<IDBObjectStore> createObjectStore(const String& name, const Dictionary&, ExceptionState&);
78 PassRefPtrWillBeRawPtr<IDBObjectStore> createObjectStore(const String& name, const IDBKeyPath&, bool autoIncrement, ExceptionState&); 78 PassRefPtrWillBeRawPtr<IDBObjectStore> createObjectStore(const String& name, const IDBKeyPath&, bool autoIncrement, ExceptionState&);
79 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext* context , PassRefPtr<DOMStringList> scope, const String& mode, ExceptionState& exception State) { return transaction(context, *scope, mode, exceptionState); } 79 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext* context , PassRefPtrWillBeRawPtr<DOMStringList> scope, const String& mode, ExceptionStat e& exceptionState) { return transaction(context, *scope, mode, exceptionState); }
80 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext*, const Vector<String>&, const String& mode, ExceptionState&); 80 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext*, const Vector<String>&, const String& mode, ExceptionState&);
81 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext*, const String&, const String& mode, ExceptionState&); 81 PassRefPtrWillBeRawPtr<IDBTransaction> transaction(ExecutionContext*, const String&, const String& mode, ExceptionState&);
82 void deleteObjectStore(const String& name, ExceptionState&); 82 void deleteObjectStore(const String& name, ExceptionState&);
83 void close(); 83 void close();
84 84
85 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort); 85 DEFINE_ATTRIBUTE_EVENT_LISTENER(abort);
86 DEFINE_ATTRIBUTE_EVENT_LISTENER(close); 86 DEFINE_ATTRIBUTE_EVENT_LISTENER(close);
87 DEFINE_ATTRIBUTE_EVENT_LISTENER(error); 87 DEFINE_ATTRIBUTE_EVENT_LISTENER(error);
88 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange); 88 DEFINE_ATTRIBUTE_EVENT_LISTENER(versionchange);
89 89
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 // Keep track of the versionchange events waiting to be fired on this 154 // Keep track of the versionchange events waiting to be fired on this
155 // database so that we can cancel them if the database closes. 155 // database so that we can cancel them if the database closes.
156 WillBeHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents; 156 WillBeHeapVector<RefPtrWillBeMember<Event> > m_enqueuedEvents;
157 157
158 RefPtrWillBeMember<IDBDatabaseCallbacks> m_databaseCallbacks; 158 RefPtrWillBeMember<IDBDatabaseCallbacks> m_databaseCallbacks;
159 }; 159 };
160 160
161 } // namespace WebCore 161 } // namespace WebCore
162 162
163 #endif // IDBDatabase_h 163 #endif // IDBDatabase_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBAny.cpp ('k') | Source/modules/indexeddb/IDBDatabase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698