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

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

Issue 329853004: Remove RefCountedGarbageCollected from EventTarget objects (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 6 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/notifications/Notification.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 28 matching lines...) Expand all
39 #include "modules/indexeddb/IDBPendingTransactionMonitor.h" 39 #include "modules/indexeddb/IDBPendingTransactionMonitor.h"
40 #include "modules/indexeddb/IDBTracing.h" 40 #include "modules/indexeddb/IDBTracing.h"
41 41
42 using blink::WebIDBDatabase; 42 using blink::WebIDBDatabase;
43 43
44 namespace WebCore { 44 namespace WebCore {
45 45
46 IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, co nst Vector<String>& objectStoreNames, WebIDBDatabase::TransactionMode mode, IDBD atabase* db) 46 IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, co nst Vector<String>& objectStoreNames, WebIDBDatabase::TransactionMode mode, IDBD atabase* db)
47 { 47 {
48 IDBOpenDBRequest* openDBRequest = 0; 48 IDBOpenDBRequest* openDBRequest = 0;
49 IDBTransaction* transaction = adoptRefCountedGarbageCollected(new IDBTransac tion(context, id, objectStoreNames, mode, db, openDBRequest, IDBDatabaseMetadata ())); 49 IDBTransaction* transaction = adoptRefCountedGarbageCollectedWillBeNoop(new IDBTransaction(context, id, objectStoreNames, mode, db, openDBRequest, IDBDataba seMetadata()));
50 transaction->suspendIfNeeded(); 50 transaction->suspendIfNeeded();
51 return transaction; 51 return transaction;
52 } 52 }
53 53
54 IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, ID BDatabase* db, IDBOpenDBRequest* openDBRequest, const IDBDatabaseMetadata& previ ousMetadata) 54 IDBTransaction* IDBTransaction::create(ExecutionContext* context, int64_t id, ID BDatabase* db, IDBOpenDBRequest* openDBRequest, const IDBDatabaseMetadata& previ ousMetadata)
55 { 55 {
56 IDBTransaction* transaction = adoptRefCountedGarbageCollected(new IDBTransac tion(context, id, Vector<String>(), WebIDBDatabase::TransactionVersionChange, db , openDBRequest, previousMetadata)); 56 IDBTransaction* transaction = adoptRefCountedGarbageCollectedWillBeNoop(new IDBTransaction(context, id, Vector<String>(), WebIDBDatabase::TransactionVersion Change, db, openDBRequest, previousMetadata));
57 transaction->suspendIfNeeded(); 57 transaction->suspendIfNeeded();
58 return transaction; 58 return transaction;
59 } 59 }
60 60
61 const AtomicString& IDBTransaction::modeReadOnly() 61 const AtomicString& IDBTransaction::modeReadOnly()
62 { 62 {
63 DEFINE_STATIC_LOCAL(AtomicString, readonly, ("readonly", AtomicString::Const ructFromLiteral)); 63 DEFINE_STATIC_LOCAL(AtomicString, readonly, ("readonly", AtomicString::Const ructFromLiteral));
64 return readonly; 64 return readonly;
65 } 65 }
66 66
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 event->setTarget(this); 399 event->setTarget(this);
400 eventQueue->enqueueEvent(event); 400 eventQueue->enqueueEvent(event);
401 } 401 }
402 402
403 blink::WebIDBDatabase* IDBTransaction::backendDB() const 403 blink::WebIDBDatabase* IDBTransaction::backendDB() const
404 { 404 {
405 return m_database->backend(); 405 return m_database->backend();
406 } 406 }
407 407
408 } // namespace WebCore 408 } // namespace WebCore
OLDNEW
« no previous file with comments | « Source/modules/indexeddb/IDBTransaction.h ('k') | Source/modules/notifications/Notification.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698