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

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

Issue 1158973007: IndexedDB: Rely on bindings for enum validation (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased Created 5 years, 6 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
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 29 matching lines...) Expand all
40 40
41 class ExceptionState; 41 class ExceptionState;
42 class IDBAny; 42 class IDBAny;
43 class IDBTransaction; 43 class IDBTransaction;
44 class IDBValue; 44 class IDBValue;
45 class ScriptState; 45 class ScriptState;
46 46
47 class IDBCursor : public GarbageCollectedFinalized<IDBCursor>, public ScriptWrap pable { 47 class IDBCursor : public GarbageCollectedFinalized<IDBCursor>, public ScriptWrap pable {
48 DEFINE_WRAPPERTYPEINFO(); 48 DEFINE_WRAPPERTYPEINFO();
49 public: 49 public:
50 static WebIDBCursorDirection stringToDirection(const String& modeString, Exc eptionState&); 50 static WebIDBCursorDirection stringToDirection(const String& modeString);
51 51
52 static IDBCursor* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, ID BRequest*, IDBAny* source, IDBTransaction*); 52 static IDBCursor* create(PassOwnPtr<WebIDBCursor>, WebIDBCursorDirection, ID BRequest*, IDBAny* source, IDBTransaction*);
53 virtual ~IDBCursor(); 53 virtual ~IDBCursor();
54 DECLARE_TRACE(); 54 DECLARE_TRACE();
55 void contextWillBeDestroyed() { m_backend.clear(); } 55 void contextWillBeDestroyed() { m_backend.clear(); }
56 56
57 // Implement the IDL 57 // Implement the IDL
58 const String& direction() const; 58 const String& direction() const;
59 ScriptValue key(ScriptState*); 59 ScriptValue key(ScriptState*);
60 ScriptValue primaryKey(ScriptState*); 60 ScriptValue primaryKey(ScriptState*);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 bool m_primaryKeyDirty; 97 bool m_primaryKeyDirty;
98 bool m_valueDirty; 98 bool m_valueDirty;
99 Member<IDBKey> m_key; 99 Member<IDBKey> m_key;
100 Member<IDBKey> m_primaryKey; 100 Member<IDBKey> m_primaryKey;
101 RefPtr<IDBValue> m_value; 101 RefPtr<IDBValue> m_value;
102 }; 102 };
103 103
104 } // namespace blink 104 } // namespace blink
105 105
106 #endif // IDBCursor_h 106 #endif // IDBCursor_h
OLDNEW
« no previous file with comments | « LayoutTests/storage/indexeddb/objectstore-cursor-expected.txt ('k') | Source/modules/indexeddb/IDBCursor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698