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

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

Issue 124003003: Add ascii() / latin1() / utf8() methods to AtomicString to avoid having to call string() (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 11 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
« no previous file with comments | « Source/modules/indexeddb/IDBRequest.cpp ('k') | Source/modules/mediasource/MediaSourceBase.cpp » ('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 351 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 if (m_contextStopped) 362 if (m_contextStopped)
363 return; 363 return;
364 364
365 m_contextStopped = true; 365 m_contextStopped = true;
366 366
367 abort(IGNORE_EXCEPTION); 367 abort(IGNORE_EXCEPTION);
368 } 368 }
369 369
370 void IDBTransaction::enqueueEvent(PassRefPtr<Event> event) 370 void IDBTransaction::enqueueEvent(PassRefPtr<Event> event)
371 { 371 {
372 ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to en queue an event of type %s.", event->type().string().utf8().data()); 372 ASSERT_WITH_MESSAGE(m_state != Finished, "A finished transaction tried to en queue an event of type %s.", event->type().utf8().data());
373 if (m_contextStopped || !executionContext()) 373 if (m_contextStopped || !executionContext())
374 return; 374 return;
375 375
376 EventQueue* eventQueue = executionContext()->eventQueue(); 376 EventQueue* eventQueue = executionContext()->eventQueue();
377 event->setTarget(this); 377 event->setTarget(this);
378 eventQueue->enqueueEvent(event); 378 eventQueue->enqueueEvent(event);
379 } 379 }
380 380
381 blink::WebIDBDatabase* IDBTransaction::backendDB() const 381 blink::WebIDBDatabase* IDBTransaction::backendDB() const
382 { 382 {
383 return m_database->backend(); 383 return m_database->backend();
384 } 384 }
385 385
386 } // namespace WebCore 386 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBRequest.cpp ('k') | Source/modules/mediasource/MediaSourceBase.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698