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

Side by Side Diff: Source/modules/indexeddb/IDBTransaction.cpp

Issue 429453010: Drop V8RecursionScope dependency on ExecutionContext (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Factor out microtask fix/tests Created 6 years, 3 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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 , m_hasPendingActivity(true) 70 , m_hasPendingActivity(true)
71 , m_contextStopped(false) 71 , m_contextStopped(false)
72 , m_previousMetadata(previousMetadata) 72 , m_previousMetadata(previousMetadata)
73 { 73 {
74 if (mode == WebIDBTransactionModeVersionChange) { 74 if (mode == WebIDBTransactionModeVersionChange) {
75 // Not active until the callback. 75 // Not active until the callback.
76 m_state = Inactive; 76 m_state = Inactive;
77 } 77 }
78 78
79 if (m_state == Active) 79 if (m_state == Active)
80 IDBPendingTransactionMonitor::from(*scriptState->executionContext()).add NewTransaction(*this); 80 IDBPendingTransactionMonitor::addNewTransaction(scriptState->isolate(), *this);
81 m_database->transactionCreated(this); 81 m_database->transactionCreated(this);
82 } 82 }
83 83
84 IDBTransaction::~IDBTransaction() 84 IDBTransaction::~IDBTransaction()
85 { 85 {
86 ASSERT(m_state == Finished || m_contextStopped); 86 ASSERT(m_state == Finished || m_contextStopped);
87 ASSERT(m_requestList.isEmpty() || m_contextStopped); 87 ASSERT(m_requestList.isEmpty() || m_contextStopped);
88 } 88 }
89 89
90 void IDBTransaction::trace(Visitor* visitor) 90 void IDBTransaction::trace(Visitor* visitor)
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 event->setTarget(this); 372 event->setTarget(this);
373 eventQueue->enqueueEvent(event); 373 eventQueue->enqueueEvent(event);
374 } 374 }
375 375
376 WebIDBDatabase* IDBTransaction::backendDB() const 376 WebIDBDatabase* IDBTransaction::backendDB() const
377 { 377 {
378 return m_database->backend(); 378 return m_database->backend();
379 } 379 }
380 380
381 } // namespace blink 381 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698