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

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

Issue 325683002: [IndexedDB] Use consistent enums on both sides of IPC. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Incorporated review comments as build bot was failing with previous patch. Created 6 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
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.cpp ('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 16 matching lines...) Expand all
27 #define IDBIndex_h 27 #define IDBIndex_h
28 28
29 #include "bindings/v8/ScriptWrappable.h" 29 #include "bindings/v8/ScriptWrappable.h"
30 #include "modules/indexeddb/IDBCursor.h" 30 #include "modules/indexeddb/IDBCursor.h"
31 #include "modules/indexeddb/IDBKeyPath.h" 31 #include "modules/indexeddb/IDBKeyPath.h"
32 #include "modules/indexeddb/IDBKeyRange.h" 32 #include "modules/indexeddb/IDBKeyRange.h"
33 #include "modules/indexeddb/IDBMetadata.h" 33 #include "modules/indexeddb/IDBMetadata.h"
34 #include "modules/indexeddb/IDBRequest.h" 34 #include "modules/indexeddb/IDBRequest.h"
35 #include "public/platform/WebIDBCursor.h" 35 #include "public/platform/WebIDBCursor.h"
36 #include "public/platform/WebIDBDatabase.h" 36 #include "public/platform/WebIDBDatabase.h"
37 #include "public/platform/WebIDBTypes.h"
37 #include "wtf/Forward.h" 38 #include "wtf/Forward.h"
38 #include "wtf/text/WTFString.h" 39 #include "wtf/text/WTFString.h"
39 40
40 namespace WebCore { 41 namespace WebCore {
41 42
42 class ExceptionState; 43 class ExceptionState;
43 class IDBObjectStore; 44 class IDBObjectStore;
44 45
45 class IDBIndex : public GarbageCollectedFinalized<IDBIndex>, public ScriptWrappa ble { 46 class IDBIndex : public GarbageCollectedFinalized<IDBIndex>, public ScriptWrappa ble {
46 public: 47 public:
(...skipping 14 matching lines...) Expand all
61 IDBRequest* openCursor(ScriptState*, const ScriptValue& key, const String& d irection, ExceptionState&); 62 IDBRequest* openCursor(ScriptState*, const ScriptValue& key, const String& d irection, ExceptionState&);
62 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri ng& direction, ExceptionState&); 63 IDBRequest* openKeyCursor(ScriptState*, const ScriptValue& range, const Stri ng& direction, ExceptionState&);
63 IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&); 64 IDBRequest* count(ScriptState*, const ScriptValue& range, ExceptionState&);
64 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&); 65 IDBRequest* get(ScriptState*, const ScriptValue& key, ExceptionState&);
65 IDBRequest* getKey(ScriptState*, const ScriptValue& key, ExceptionState&); 66 IDBRequest* getKey(ScriptState*, const ScriptValue& key, ExceptionState&);
66 67
67 void markDeleted() { m_deleted = true; } 68 void markDeleted() { m_deleted = true; }
68 bool isDeleted() const; 69 bool isDeleted() const;
69 70
70 // Used internally and by InspectorIndexedDBAgent: 71 // Used internally and by InspectorIndexedDBAgent:
71 IDBRequest* openCursor(ScriptState*, IDBKeyRange*, blink::WebIDBCursor::Dire ction); 72 IDBRequest* openCursor(ScriptState*, IDBKeyRange*, blink::WebIDBCursorDirect ion);
72 73
73 blink::WebIDBDatabase* backendDB() const; 74 blink::WebIDBDatabase* backendDB() const;
74 75
75 private: 76 private:
76 IDBIndex(const IDBIndexMetadata&, IDBObjectStore*, IDBTransaction*); 77 IDBIndex(const IDBIndexMetadata&, IDBObjectStore*, IDBTransaction*);
77 78
78 IDBRequest* getInternal(ScriptState*, const ScriptValue& key, ExceptionState &, bool keyOnly); 79 IDBRequest* getInternal(ScriptState*, const ScriptValue& key, ExceptionState &, bool keyOnly);
79 80
80 IDBIndexMetadata m_metadata; 81 IDBIndexMetadata m_metadata;
81 Member<IDBObjectStore> m_objectStore; 82 Member<IDBObjectStore> m_objectStore;
82 Member<IDBTransaction> m_transaction; 83 Member<IDBTransaction> m_transaction;
83 bool m_deleted; 84 bool m_deleted;
84 }; 85 };
85 86
86 } // namespace WebCore 87 } // namespace WebCore
87 88
88 #endif // IDBIndex_h 89 #endif // IDBIndex_h
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBDatabase.cpp ('k') | Source/modules/indexeddb/IDBIndex.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698