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

Side by Side Diff: Source/modules/indexeddb/IDBCursor.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/bindings/v8/IDBBindingUtilitiesTest.cpp ('k') | Source/modules/indexeddb/IDBCursor.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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 static const AtomicString& directionPrevUnique(); 53 static const AtomicString& directionPrevUnique();
54 54
55 static blink::WebIDBCursor::Direction stringToDirection(const String& modeSt ring, ExceptionState&); 55 static blink::WebIDBCursor::Direction stringToDirection(const String& modeSt ring, ExceptionState&);
56 static const AtomicString& directionToString(unsigned short mode); 56 static const AtomicString& directionToString(unsigned short mode);
57 57
58 static PassRefPtr<IDBCursor> create(PassOwnPtr<blink::WebIDBCursor>, blink:: WebIDBCursor::Direction, IDBRequest*, IDBAny* source, IDBTransaction*); 58 static PassRefPtr<IDBCursor> create(PassOwnPtr<blink::WebIDBCursor>, blink:: WebIDBCursor::Direction, IDBRequest*, IDBAny* source, IDBTransaction*);
59 virtual ~IDBCursor(); 59 virtual ~IDBCursor();
60 60
61 // Implement the IDL 61 // Implement the IDL
62 const String& direction() const { return directionToString(m_direction); } 62 const String& direction() const { return directionToString(m_direction); }
63 ScriptValue key(ExecutionContext*); 63 ScriptValue key(NewScriptState*);
64 ScriptValue primaryKey(ExecutionContext*); 64 ScriptValue primaryKey(NewScriptState*);
65 ScriptValue value(ExecutionContext*); 65 ScriptValue value(NewScriptState*);
66 ScriptValue source(ExecutionContext*) const; 66 ScriptValue source(NewScriptState*) const;
67 67
68 PassRefPtr<IDBRequest> update(ScriptState*, ScriptValue&, ExceptionState&); 68 PassRefPtr<IDBRequest> update(ScriptState*, ScriptValue&, ExceptionState&);
69 void advance(unsigned long, ExceptionState&); 69 void advance(unsigned long, ExceptionState&);
70 void continueFunction(ExecutionContext*, const ScriptValue& key, ExceptionSt ate&); 70 void continueFunction(ExecutionContext*, const ScriptValue& key, ExceptionSt ate&);
71 void continuePrimaryKey(ExecutionContext*, const ScriptValue& key, const Scr iptValue& primaryKey, ExceptionState&); 71 void continuePrimaryKey(ExecutionContext*, const ScriptValue& key, const Scr iptValue& primaryKey, ExceptionState&);
72 PassRefPtr<IDBRequest> deleteFunction(ExecutionContext*, ExceptionState&); 72 PassRefPtr<IDBRequest> deleteFunction(ExecutionContext*, ExceptionState&);
73 73
74 bool isKeyDirty() const { return m_keyDirty; } 74 bool isKeyDirty() const { return m_keyDirty; }
75 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; } 75 bool isPrimaryKeyDirty() const { return m_primaryKeyDirty; }
76 bool isValueDirty() const { return m_valueDirty; } 76 bool isValueDirty() const { return m_valueDirty; }
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 bool m_primaryKeyDirty; 111 bool m_primaryKeyDirty;
112 bool m_valueDirty; 112 bool m_valueDirty;
113 RefPtr<IDBKey> m_key; 113 RefPtr<IDBKey> m_key;
114 RefPtr<IDBKey> m_primaryKey; 114 RefPtr<IDBKey> m_primaryKey;
115 RefPtr<SharedBuffer> m_value; 115 RefPtr<SharedBuffer> m_value;
116 }; 116 };
117 117
118 } // namespace WebCore 118 } // namespace WebCore
119 119
120 #endif // IDBCursor_h 120 #endif // IDBCursor_h
OLDNEW
« no previous file with comments | « Source/bindings/v8/IDBBindingUtilitiesTest.cpp ('k') | Source/modules/indexeddb/IDBCursor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698