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 23 matching lines...) Expand all Loading... |
34 #include "modules/indexeddb/IDBDatabase.h" | 34 #include "modules/indexeddb/IDBDatabase.h" |
35 #include "modules/indexeddb/IDBEventDispatcher.h" | 35 #include "modules/indexeddb/IDBEventDispatcher.h" |
36 #include "modules/indexeddb/IDBIndex.h" | 36 #include "modules/indexeddb/IDBIndex.h" |
37 #include "modules/indexeddb/IDBObjectStore.h" | 37 #include "modules/indexeddb/IDBObjectStore.h" |
38 #include "modules/indexeddb/IDBOpenDBRequest.h" | 38 #include "modules/indexeddb/IDBOpenDBRequest.h" |
39 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" | 39 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" |
40 #include "modules/indexeddb/IDBTracing.h" | 40 #include "modules/indexeddb/IDBTracing.h" |
41 | 41 |
42 using blink::WebIDBDatabase; | 42 using blink::WebIDBDatabase; |
43 | 43 |
44 namespace WebCore { | 44 namespace blink { |
45 | 45 |
46 IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, co
nst Vector<String>& objectStoreNames, blink::WebIDBTransactionMode mode, IDBData
base* db) | 46 IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, co
nst Vector<String>& objectStoreNames, blink::WebIDBTransactionMode mode, IDBData
base* db) |
47 { | 47 { |
48 IDBOpenDBRequest* openDBRequest = 0; | 48 IDBOpenDBRequest* openDBRequest = 0; |
49 IDBTransaction* transaction = adoptRefCountedGarbageCollectedWillBeNoop(new
IDBTransaction(context, id, objectStoreNames, mode, db, openDBRequest, IDBDataba
seMetadata())); | 49 IDBTransaction* transaction = adoptRefCountedGarbageCollectedWillBeNoop(new
IDBTransaction(context, id, objectStoreNames, mode, db, openDBRequest, IDBDataba
seMetadata())); |
50 transaction->suspendIfNeeded(); | 50 transaction->suspendIfNeeded(); |
51 return transaction; | 51 return transaction; |
52 } | 52 } |
53 | 53 |
54 IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, ID
BDatabase* db, IDBOpenDBRequest* openDBRequest, const IDBDatabaseMetadata& previ
ousMetadata) | 54 IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, ID
BDatabase* db, IDBOpenDBRequest* openDBRequest, const IDBDatabaseMetadata& previ
ousMetadata) |
(...skipping 342 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
397 EventQueue* eventQueue = executionContext()->eventQueue(); | 397 EventQueue* eventQueue = executionContext()->eventQueue(); |
398 event->setTarget(this); | 398 event->setTarget(this); |
399 eventQueue->enqueueEvent(event); | 399 eventQueue->enqueueEvent(event); |
400 } | 400 } |
401 | 401 |
402 blink::WebIDBDatabase* IDBTransaction::backendDB() const | 402 blink::WebIDBDatabase* IDBTransaction::backendDB() const |
403 { | 403 { |
404 return m_database->backend(); | 404 return m_database->backend(); |
405 } | 405 } |
406 | 406 |
407 } // namespace WebCore | 407 } // namespace blink |
OLD | NEW |