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

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

Issue 614373007: Oilpan: Remove adoptRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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
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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const char IDBDatabase::objectStoreDeletedErrorMessage[] = "The object store has been deleted."; 63 const char IDBDatabase::objectStoreDeletedErrorMessage[] = "The object store has been deleted.";
64 const char IDBDatabase::requestNotFinishedErrorMessage[] = "The request has not finished."; 64 const char IDBDatabase::requestNotFinishedErrorMessage[] = "The request has not finished.";
65 const char IDBDatabase::sourceDeletedErrorMessage[] = "The cursor's source or ef fective object store has been deleted."; 65 const char IDBDatabase::sourceDeletedErrorMessage[] = "The cursor's source or ef fective object store has been deleted.";
66 const char IDBDatabase::transactionInactiveErrorMessage[] = "The transaction is not active."; 66 const char IDBDatabase::transactionInactiveErrorMessage[] = "The transaction is not active.";
67 const char IDBDatabase::transactionFinishedErrorMessage[] = "The transaction has finished."; 67 const char IDBDatabase::transactionFinishedErrorMessage[] = "The transaction has finished.";
68 const char IDBDatabase::transactionReadOnlyErrorMessage[] = "The transaction is read-only."; 68 const char IDBDatabase::transactionReadOnlyErrorMessage[] = "The transaction is read-only.";
69 const char IDBDatabase::databaseClosedErrorMessage[] = "The database connection is closed."; 69 const char IDBDatabase::databaseClosedErrorMessage[] = "The database connection is closed.";
70 70
71 IDBDatabase* IDBDatabase::create(ExecutionContext* context, PassOwnPtr<WebIDBDat abase> database, IDBDatabaseCallbacks* callbacks) 71 IDBDatabase* IDBDatabase::create(ExecutionContext* context, PassOwnPtr<WebIDBDat abase> database, IDBDatabaseCallbacks* callbacks)
72 { 72 {
73 IDBDatabase* idbDatabase = adoptRefCountedGarbageCollectedWillBeNoop(new IDB Database(context, database, callbacks)); 73 IDBDatabase* idbDatabase = new IDBDatabase(context, database, callbacks);
74 idbDatabase->suspendIfNeeded(); 74 idbDatabase->suspendIfNeeded();
75 return idbDatabase; 75 return idbDatabase;
76 } 76 }
77 77
78 IDBDatabase::IDBDatabase(ExecutionContext* context, PassOwnPtr<WebIDBDatabase> b ackend, IDBDatabaseCallbacks* callbacks) 78 IDBDatabase::IDBDatabase(ExecutionContext* context, PassOwnPtr<WebIDBDatabase> b ackend, IDBDatabaseCallbacks* callbacks)
79 : ActiveDOMObject(context) 79 : ActiveDOMObject(context)
80 , m_backend(backend) 80 , m_backend(backend)
81 , m_closePending(false) 81 , m_closePending(false)
82 , m_contextStopped(false) 82 , m_contextStopped(false)
83 , m_databaseCallbacks(callbacks) 83 , m_databaseCallbacks(callbacks)
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
470 { 470 {
471 return EventTargetNames::IDBDatabase; 471 return EventTargetNames::IDBDatabase;
472 } 472 }
473 473
474 ExecutionContext* IDBDatabase::executionContext() const 474 ExecutionContext* IDBDatabase::executionContext() const
475 { 475 {
476 return ActiveDOMObject::executionContext(); 476 return ActiveDOMObject::executionContext();
477 } 477 }
478 478
479 } // namespace blink 479 } // namespace blink
OLDNEW
« no previous file with comments | « Source/modules/filesystem/FileWriterSync.h ('k') | Source/modules/indexeddb/IDBOpenDBRequest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698