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

Side by Side Diff: Source/modules/indexeddb/IDBIndex.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
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.idl ('k') | Source/modules/indexeddb/IDBIndex.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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 public: 46 public:
47 static PassRefPtr<IDBIndex> create(const IDBIndexMetadata& metadata, IDBObje ctStore* objectStore, IDBTransaction* transaction) 47 static PassRefPtr<IDBIndex> create(const IDBIndexMetadata& metadata, IDBObje ctStore* objectStore, IDBTransaction* transaction)
48 { 48 {
49 return adoptRef(new IDBIndex(metadata, objectStore, transaction)); 49 return adoptRef(new IDBIndex(metadata, objectStore, transaction));
50 } 50 }
51 ~IDBIndex(); 51 ~IDBIndex();
52 52
53 // Implement the IDL 53 // Implement the IDL
54 const String& name() const { return m_metadata.name; } 54 const String& name() const { return m_metadata.name; }
55 PassRefPtr<IDBObjectStore> objectStore() const { return m_objectStore; } 55 PassRefPtr<IDBObjectStore> objectStore() const { return m_objectStore; }
56 ScriptValue keyPath(ExecutionContext*) const; 56 ScriptValue keyPath(NewScriptState*) const;
57 bool unique() const { return m_metadata.unique; } 57 bool unique() const { return m_metadata.unique; }
58 bool multiEntry() const { return m_metadata.multiEntry; } 58 bool multiEntry() const { return m_metadata.multiEntry; }
59 59
60 PassRefPtr<IDBRequest> openCursor(ExecutionContext*, const ScriptValue& key, const String& direction, ExceptionState&); 60 PassRefPtr<IDBRequest> openCursor(ExecutionContext*, const ScriptValue& key, const String& direction, ExceptionState&);
61 PassRefPtr<IDBRequest> openKeyCursor(ExecutionContext*, const ScriptValue& r ange, const String& direction, ExceptionState&); 61 PassRefPtr<IDBRequest> openKeyCursor(ExecutionContext*, const ScriptValue& r ange, const String& direction, ExceptionState&);
62 PassRefPtr<IDBRequest> count(ExecutionContext*, const ScriptValue& range, Ex ceptionState&); 62 PassRefPtr<IDBRequest> count(ExecutionContext*, const ScriptValue& range, Ex ceptionState&);
63 PassRefPtr<IDBRequest> get(ExecutionContext*, const ScriptValue& key, Except ionState&); 63 PassRefPtr<IDBRequest> get(ExecutionContext*, const ScriptValue& key, Except ionState&);
64 PassRefPtr<IDBRequest> getKey(ExecutionContext*, const ScriptValue& key, Exc eptionState&); 64 PassRefPtr<IDBRequest> getKey(ExecutionContext*, const ScriptValue& key, Exc eptionState&);
65 65
66 void markDeleted() { m_deleted = true; } 66 void markDeleted() { m_deleted = true; }
(...skipping 11 matching lines...) Expand all
78 78
79 IDBIndexMetadata m_metadata; 79 IDBIndexMetadata m_metadata;
80 RefPtr<IDBObjectStore> m_objectStore; 80 RefPtr<IDBObjectStore> m_objectStore;
81 RefPtr<IDBTransaction> m_transaction; 81 RefPtr<IDBTransaction> m_transaction;
82 bool m_deleted; 82 bool m_deleted;
83 }; 83 };
84 84
85 } // namespace WebCore 85 } // namespace WebCore
86 86
87 #endif // IDBIndex_h 87 #endif // IDBIndex_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.idl ('k') | Source/modules/indexeddb/IDBIndex.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698