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

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

Issue 2125213002: [IndexedDB] Propogating changes to observers : Renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lifetime
Patch Set: Minor fix Created 4 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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 public: 62 public:
63 static IDBDatabase* create(ExecutionContext*, std::unique_ptr<WebIDBDatabase >, IDBDatabaseCallbacks*); 63 static IDBDatabase* create(ExecutionContext*, std::unique_ptr<WebIDBDatabase >, IDBDatabaseCallbacks*);
64 ~IDBDatabase() override; 64 ~IDBDatabase() override;
65 DECLARE_VIRTUAL_TRACE(); 65 DECLARE_VIRTUAL_TRACE();
66 66
67 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat a; } 67 void setMetadata(const IDBDatabaseMetadata& metadata) { m_metadata = metadat a; }
68 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&); 68 void indexCreated(int64_t objectStoreId, const IDBIndexMetadata&);
69 void indexDeleted(int64_t objectStoreId, int64_t indexId); 69 void indexDeleted(int64_t objectStoreId, int64_t indexId);
70 void transactionCreated(IDBTransaction*); 70 void transactionCreated(IDBTransaction*);
71 void transactionFinished(const IDBTransaction*); 71 void transactionFinished(const IDBTransaction*);
72 const String& getObjectStoreName(int64_t objectStoreId) const;
72 73
73 // Implement the IDL 74 // Implement the IDL
74 const String& name() const { return m_metadata.name; } 75 const String& name() const { return m_metadata.name; }
75 unsigned long long version() const { return m_metadata.version; } 76 unsigned long long version() const { return m_metadata.version; }
76 DOMStringList* objectStoreNames() const; 77 DOMStringList* objectStoreNames() const;
77 78
78 IDBObjectStore* createObjectStore(const String& name, const IDBObjectStorePa rameters& options, ExceptionState& exceptionState) { return createObjectStore(na me, IDBKeyPath(options.keyPath()), options.autoIncrement(), exceptionState); } 79 IDBObjectStore* createObjectStore(const String& name, const IDBObjectStorePa rameters& options, ExceptionState& exceptionState) { return createObjectStore(na me, IDBKeyPath(options.keyPath()), options.autoIncrement(), exceptionState); }
79 IDBTransaction* transaction(ScriptState*, const StringOrStringSequenceOrDOMS tringList&, const String& mode, ExceptionState&); 80 IDBTransaction* transaction(ScriptState*, const StringOrStringSequenceOrDOMS tringList&, const String& mode, ExceptionState&);
80 void deleteObjectStore(const String& name, ExceptionState&); 81 void deleteObjectStore(const String& name, ExceptionState&);
81 void close(); 82 void close();
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 // Keep track of the versionchange events waiting to be fired on this 156 // Keep track of the versionchange events waiting to be fired on this
156 // database so that we can cancel them if the database closes. 157 // database so that we can cancel them if the database closes.
157 HeapVector<Member<Event>> m_enqueuedEvents; 158 HeapVector<Member<Event>> m_enqueuedEvents;
158 159
159 Member<IDBDatabaseCallbacks> m_databaseCallbacks; 160 Member<IDBDatabaseCallbacks> m_databaseCallbacks;
160 }; 161 };
161 162
162 } // namespace blink 163 } // namespace blink
163 164
164 #endif // IDBDatabase_h 165 #endif // IDBDatabase_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698