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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 , m_id(id) | 93 , m_id(id) |
94 , m_database(db) | 94 , m_database(db) |
95 , m_objectStoreNames(objectStoreNames) | 95 , m_objectStoreNames(objectStoreNames) |
96 , m_openDBRequest(openDBRequest) | 96 , m_openDBRequest(openDBRequest) |
97 , m_mode(mode) | 97 , m_mode(mode) |
98 , m_state(Active) | 98 , m_state(Active) |
99 , m_hasPendingActivity(true) | 99 , m_hasPendingActivity(true) |
100 , m_contextStopped(false) | 100 , m_contextStopped(false) |
101 , m_previousMetadata(previousMetadata) | 101 , m_previousMetadata(previousMetadata) |
102 { | 102 { |
| 103 ScriptWrappable::init(this); |
103 if (mode == IndexedDB::TransactionVersionChange) { | 104 if (mode == IndexedDB::TransactionVersionChange) { |
104 // Not active until the callback. | 105 // Not active until the callback. |
105 m_state = Inactive; | 106 m_state = Inactive; |
106 } | 107 } |
107 | 108 |
108 // We pass a reference of this object before it can be adopted. | 109 // We pass a reference of this object before it can be adopted. |
109 relaxAdoptionRequirement(); | 110 relaxAdoptionRequirement(); |
110 if (m_state == Active) | 111 if (m_state == Active) |
111 IDBPendingTransactionMonitor::addNewTransaction(this); | 112 IDBPendingTransactionMonitor::addNewTransaction(this); |
112 m_database->transactionCreated(this); | 113 m_database->transactionCreated(this); |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
444 { | 445 { |
445 return &m_eventTargetData; | 446 return &m_eventTargetData; |
446 } | 447 } |
447 | 448 |
448 IDBDatabaseBackendInterface* IDBTransaction::backendDB() const | 449 IDBDatabaseBackendInterface* IDBTransaction::backendDB() const |
449 { | 450 { |
450 return db()->backend(); | 451 return db()->backend(); |
451 } | 452 } |
452 | 453 |
453 } // namespace WebCore | 454 } // namespace WebCore |
OLD | NEW |