OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |