| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 private: | 77 private: |
| 78 explicit DeactivateTransactionTask(IDBTransaction* transaction) | 78 explicit DeactivateTransactionTask(IDBTransaction* transaction) |
| 79 : m_transaction(transaction) { } | 79 : m_transaction(transaction) { } |
| 80 | 80 |
| 81 Persistent<IDBTransaction> m_transaction; | 81 Persistent<IDBTransaction> m_transaction; |
| 82 }; | 82 }; |
| 83 | 83 |
| 84 } // namespace | 84 } // namespace |
| 85 | 85 |
| 86 IDBTransaction::IDBTransaction(ScriptState* scriptState, int64_t id, const HashS
et<String>& objectStoreNames, WebIDBTransactionMode mode, IDBDatabase* db, IDBOp
enDBRequest* openDBRequest, const IDBDatabaseMetadata& previousMetadata) | 86 IDBTransaction::IDBTransaction(ScriptState* scriptState, int64_t id, const HashS
et<String>& objectStoreNames, WebIDBTransactionMode mode, IDBDatabase* db, IDBOp
enDBRequest* openDBRequest, const IDBDatabaseMetadata& previousMetadata) |
| 87 : ActiveDOMObject(scriptState->getExecutionContext()) | 87 : ActiveScriptWrappable(this) |
| 88 , ActiveDOMObject(scriptState->getExecutionContext()) |
| 88 , m_id(id) | 89 , m_id(id) |
| 89 , m_database(db) | 90 , m_database(db) |
| 90 , m_objectStoreNames(objectStoreNames) | 91 , m_objectStoreNames(objectStoreNames) |
| 91 , m_openDBRequest(openDBRequest) | 92 , m_openDBRequest(openDBRequest) |
| 92 , m_mode(mode) | 93 , m_mode(mode) |
| 93 , m_previousMetadata(previousMetadata) | 94 , m_previousMetadata(previousMetadata) |
| 94 { | 95 { |
| 95 if (mode == WebIDBTransactionModeVersionChange) { | 96 if (mode == WebIDBTransactionModeVersionChange) { |
| 96 // Not active until the callback. | 97 // Not active until the callback. |
| 97 m_state = Inactive; | 98 m_state = Inactive; |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 420 event->setTarget(this); | 421 event->setTarget(this); |
| 421 eventQueue->enqueueEvent(event); | 422 eventQueue->enqueueEvent(event); |
| 422 } | 423 } |
| 423 | 424 |
| 424 WebIDBDatabase* IDBTransaction::backendDB() const | 425 WebIDBDatabase* IDBTransaction::backendDB() const |
| 425 { | 426 { |
| 426 return m_database->backend(); | 427 return m_database->backend(); |
| 427 } | 428 } |
| 428 | 429 |
| 429 } // namespace blink | 430 } // namespace blink |
| OLD | NEW |