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

Side by Side Diff: Source/modules/indexeddb/IDBDatabase.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
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 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 const char IDBDatabase::objectStoreDeletedErrorMessage[] = "The object store has been deleted."; 62 const char IDBDatabase::objectStoreDeletedErrorMessage[] = "The object store has been deleted.";
63 const char IDBDatabase::requestNotFinishedErrorMessage[] = "The request has not finished."; 63 const char IDBDatabase::requestNotFinishedErrorMessage[] = "The request has not finished.";
64 const char IDBDatabase::sourceDeletedErrorMessage[] = "The cursor's source or ef fective object store has been deleted."; 64 const char IDBDatabase::sourceDeletedErrorMessage[] = "The cursor's source or ef fective object store has been deleted.";
65 const char IDBDatabase::transactionInactiveErrorMessage[] = "The transaction is not active."; 65 const char IDBDatabase::transactionInactiveErrorMessage[] = "The transaction is not active.";
66 const char IDBDatabase::transactionFinishedErrorMessage[] = "The transaction has finished."; 66 const char IDBDatabase::transactionFinishedErrorMessage[] = "The transaction has finished.";
67 const char IDBDatabase::transactionReadOnlyErrorMessage[] = "The transaction is read-only."; 67 const char IDBDatabase::transactionReadOnlyErrorMessage[] = "The transaction is read-only.";
68 const char IDBDatabase::databaseClosedErrorMessage[] = "The database connection is closed."; 68 const char IDBDatabase::databaseClosedErrorMessage[] = "The database connection is closed.";
69 69
70 IDBDatabase* IDBDatabase::create(ExecutionContext* context, PassOwnPtr<WebIDBDat abase> database, IDBDatabaseCallbacks* callbacks) 70 IDBDatabase* IDBDatabase::create(ExecutionContext* context, PassOwnPtr<WebIDBDat abase> database, IDBDatabaseCallbacks* callbacks)
71 { 71 {
72 IDBDatabase* idbDatabase = adoptRefCountedGarbageCollected(new IDBDatabase(c ontext, database, callbacks)); 72 IDBDatabase* idbDatabase = new IDBDatabase(context, database, callbacks);
73 idbDatabase->suspendIfNeeded(); 73 idbDatabase->suspendIfNeeded();
74 return idbDatabase; 74 return idbDatabase;
75 } 75 }
76 76
77 IDBDatabase::IDBDatabase(ExecutionContext* context, PassOwnPtr<WebIDBDatabase> b ackend, IDBDatabaseCallbacks* callbacks) 77 IDBDatabase::IDBDatabase(ExecutionContext* context, PassOwnPtr<WebIDBDatabase> b ackend, IDBDatabaseCallbacks* callbacks)
78 : ActiveDOMObject(context) 78 : ActiveDOMObject(context)
79 , m_backend(backend) 79 , m_backend(backend)
80 , m_closePending(false) 80 , m_closePending(false)
81 , m_contextStopped(false) 81 , m_contextStopped(false)
82 , m_databaseCallbacks(callbacks) 82 , m_databaseCallbacks(callbacks)
(...skipping 378 matching lines...) Expand 10 before | Expand all | Expand 10 after
461 { 461 {
462 return EventTargetNames::IDBDatabase; 462 return EventTargetNames::IDBDatabase;
463 } 463 }
464 464
465 ExecutionContext* IDBDatabase::executionContext() const 465 ExecutionContext* IDBDatabase::executionContext() const
466 { 466 {
467 return ActiveDOMObject::executionContext(); 467 return ActiveDOMObject::executionContext();
468 } 468 }
469 469
470 } // namespace WebCore 470 } // namespace WebCore
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698