OLD | NEW |
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 15 matching lines...) Expand all Loading... |
26 #include "config.h" | 26 #include "config.h" |
27 #include "modules/indexeddb/IDBCursor.h" | 27 #include "modules/indexeddb/IDBCursor.h" |
28 | 28 |
29 #include "bindings/v8/ExceptionState.h" | 29 #include "bindings/v8/ExceptionState.h" |
30 #include "bindings/v8/IDBBindingUtilities.h" | 30 #include "bindings/v8/IDBBindingUtilities.h" |
31 #include "core/dom/ExceptionCode.h" | 31 #include "core/dom/ExceptionCode.h" |
32 #include "core/dom/ExecutionContext.h" | 32 #include "core/dom/ExecutionContext.h" |
33 #include "core/inspector/ScriptCallStack.h" | 33 #include "core/inspector/ScriptCallStack.h" |
34 #include "modules/indexeddb/IDBAny.h" | 34 #include "modules/indexeddb/IDBAny.h" |
35 #include "modules/indexeddb/IDBDatabase.h" | 35 #include "modules/indexeddb/IDBDatabase.h" |
36 #include "modules/indexeddb/IDBKey.h" | |
37 #include "modules/indexeddb/IDBObjectStore.h" | 36 #include "modules/indexeddb/IDBObjectStore.h" |
38 #include "modules/indexeddb/IDBRequest.h" | |
39 #include "modules/indexeddb/IDBTracing.h" | 37 #include "modules/indexeddb/IDBTracing.h" |
40 #include "modules/indexeddb/IDBTransaction.h" | 38 #include "modules/indexeddb/IDBTransaction.h" |
41 #include "modules/indexeddb/WebIDBCallbacksImpl.h" | 39 #include "modules/indexeddb/WebIDBCallbacksImpl.h" |
42 #include "platform/SharedBuffer.h" | |
43 #include "platform/SharedBuffer.h" | |
44 #include "public/platform/WebIDBCursor.h" | |
45 #include "public/platform/WebIDBDatabase.h" | 40 #include "public/platform/WebIDBDatabase.h" |
46 #include "public/platform/WebIDBKeyRange.h" | 41 #include "public/platform/WebIDBKeyRange.h" |
47 #include <limits> | 42 #include <limits> |
48 | 43 |
49 using blink::WebIDBDatabase; | 44 using blink::WebIDBDatabase; |
50 | 45 |
51 namespace WebCore { | 46 namespace WebCore { |
52 | 47 |
53 PassRefPtr<IDBCursor> IDBCursor::create(PassOwnPtr<blink::WebIDBCursor> backend,
IndexedDB::CursorDirection direction, IDBRequest* request, IDBAny* source, IDBT
ransaction* transaction) | 48 PassRefPtr<IDBCursor> IDBCursor::create(PassOwnPtr<blink::WebIDBCursor> backend,
IndexedDB::CursorDirection direction, IDBRequest* request, IDBAny* source, IDBT
ransaction* transaction) |
54 { | 49 { |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 case IndexedDB::CursorPrevNoDuplicate: | 392 case IndexedDB::CursorPrevNoDuplicate: |
398 return IDBCursor::directionPrevUnique(); | 393 return IDBCursor::directionPrevUnique(); |
399 | 394 |
400 default: | 395 default: |
401 ASSERT_NOT_REACHED(); | 396 ASSERT_NOT_REACHED(); |
402 return IDBCursor::directionNext(); | 397 return IDBCursor::directionNext(); |
403 } | 398 } |
404 } | 399 } |
405 | 400 |
406 } // namespace WebCore | 401 } // namespace WebCore |
OLD | NEW |