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

Side by Side Diff: Source/WebCore/Modules/indexeddb/IDBTransaction.cpp

Issue 13814002: First part of work to move V8 binding integrity off of vtables. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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 | Annotate | Revision Log
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 82 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « Source/WebCore/Modules/indexeddb/IDBRequest.cpp ('k') | Source/WebCore/Modules/indexeddb/IDBVersionChangeEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698