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

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

Issue 26878003: Reduce repetitive EventTarget subclassing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fix nit Created 7 years, 2 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
« no previous file with comments | « Source/modules/indexeddb/IDBTransaction.h ('k') | Source/modules/mediasource/MediaSourceBase.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 381 matching lines...) Expand 10 before | Expand all | Expand 10 after
392 { 392 {
393 ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to en queue an event of type %s.", event->type().string().utf8().data()); 393 ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to en queue an event of type %s.", event->type().string().utf8().data());
394 if (m_contextStopped || !scriptExecutionContext()) 394 if (m_contextStopped || !scriptExecutionContext())
395 return; 395 return;
396 396
397 EventQueue* eventQueue = scriptExecutionContext()->eventQueue(); 397 EventQueue* eventQueue = scriptExecutionContext()->eventQueue();
398 event->setTarget(this); 398 event->setTarget(this);
399 eventQueue->enqueueEvent(event); 399 eventQueue->enqueueEvent(event);
400 } 400 }
401 401
402 EventTargetData* IDBTransaction::eventTargetData()
403 {
404 return &m_eventTargetData;
405 }
406
407 EventTargetData* IDBTransaction::ensureEventTargetData()
408 {
409 return &m_eventTargetData;
410 }
411
412 IDBDatabaseBackendInterface* IDBTransaction::backendDB() const 402 IDBDatabaseBackendInterface* IDBTransaction::backendDB() const
413 { 403 {
414 return db()->backend(); 404 return db()->backend();
415 } 405 }
416 406
417 } // namespace WebCore 407 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBTransaction.h ('k') | Source/modules/mediasource/MediaSourceBase.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698