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

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

Issue 128683004: Refactor IDBIndex::get/getKey (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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 | « no previous file | 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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 bool isDeleted() const; 67 bool isDeleted() const;
68 68
69 // Used internally and by InspectorIndexedDBAgent: 69 // Used internally and by InspectorIndexedDBAgent:
70 PassRefPtr<IDBRequest> openCursor(ExecutionContext*, PassRefPtr<IDBKeyRange> , IndexedDB::CursorDirection); 70 PassRefPtr<IDBRequest> openCursor(ExecutionContext*, PassRefPtr<IDBKeyRange> , IndexedDB::CursorDirection);
71 71
72 blink::WebIDBDatabase* backendDB() const; 72 blink::WebIDBDatabase* backendDB() const;
73 73
74 private: 74 private:
75 IDBIndex(const IDBIndexMetadata&, IDBObjectStore*, IDBTransaction*); 75 IDBIndex(const IDBIndexMetadata&, IDBObjectStore*, IDBTransaction*);
76 76
77 PassRefPtr<IDBRequest> getInternal(ExecutionContext*, const ScriptValue& key , ExceptionState&, bool keyOnly);
78
77 IDBIndexMetadata m_metadata; 79 IDBIndexMetadata m_metadata;
78 RefPtr<IDBObjectStore> m_objectStore; 80 RefPtr<IDBObjectStore> m_objectStore;
79 RefPtr<IDBTransaction> m_transaction; 81 RefPtr<IDBTransaction> m_transaction;
80 bool m_deleted; 82 bool m_deleted;
81 }; 83 };
82 84
83 } // namespace WebCore 85 } // namespace WebCore
84 86
85 #endif // IDBIndex_h 87 #endif // IDBIndex_h
OLDNEW
« no previous file with comments | « no previous file | Source/modules/indexeddb/IDBIndex.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698