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

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

Issue 2276593002: Support renaming of IndexedDB indexes and object stores. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed feedback on tests. Created 4 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
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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 public: 48 public:
49 static IDBIndex* create(const IDBIndexMetadata& metadata, IDBObjectStore* ob jectStore, IDBTransaction* transaction) 49 static IDBIndex* create(const IDBIndexMetadata& metadata, IDBObjectStore* ob jectStore, IDBTransaction* transaction)
50 { 50 {
51 return new IDBIndex(metadata, objectStore, transaction); 51 return new IDBIndex(metadata, objectStore, transaction);
52 } 52 }
53 ~IDBIndex(); 53 ~IDBIndex();
54 DECLARE_TRACE(); 54 DECLARE_TRACE();
55 55
56 // Implement the IDL 56 // Implement the IDL
57 const String& name() const { return m_metadata.name; } 57 const String& name() const { return m_metadata.name; }
58 void setName(const String& name) { return; }
58 IDBObjectStore* objectStore() const { return m_objectStore.get(); } 59 IDBObjectStore* objectStore() const { return m_objectStore.get(); }
59 ScriptValue keyPath(ScriptState*) const; 60 ScriptValue keyPath(ScriptState*) const;
60 bool unique() const { return m_metadata.unique; } 61 bool unique() const { return m_metadata.unique; }
61 bool multiEntry() const { return m_metadata.multiEntry; } 62 bool multiEntry() const { return m_metadata.multiEntry; }
62 63
63 IDBRequest* openCursor(ScriptState*, const ScriptValue& key, const String& d irection, ExceptionState&); 64 IDBRequest* openCursor(ScriptState*, const ScriptValue& key, const String& d irection, ExceptionState&);
64 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri ng& direction, ExceptionState&); 65 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri ng& direction, ExceptionState&);
65 IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&); 66 IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&);
66 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&); 67 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&);
67 IDBRequest* getAll(ScriptState*, const ScriptValue& range, ExceptionState&); 68 IDBRequest* getAll(ScriptState*, const ScriptValue& range, ExceptionState&);
(...skipping 18 matching lines...) Expand all
86 87
87 IDBIndexMetadata m_metadata; 88 IDBIndexMetadata m_metadata;
88 Member<IDBObjectStore> m_objectStore; 89 Member<IDBObjectStore> m_objectStore;
89 Member<IDBTransaction> m_transaction; 90 Member<IDBTransaction> m_transaction;
90 bool m_deleted = false; 91 bool m_deleted = false;
91 }; 92 };
92 93
93 } // namespace blink 94 } // namespace blink
94 95
95 #endif // IDBIndex_h 96 #endif // IDBIndex_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698