OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2013 Apple 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 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 20 matching lines...) Expand all Loading... |
31 #include "modules/webdatabase/ChangeVersionWrapper.h" | 31 #include "modules/webdatabase/ChangeVersionWrapper.h" |
32 #include "modules/webdatabase/DatabaseContext.h" | 32 #include "modules/webdatabase/DatabaseContext.h" |
33 #include "modules/webdatabase/DatabaseTask.h" | 33 #include "modules/webdatabase/DatabaseTask.h" |
34 #include "modules/webdatabase/DatabaseThread.h" | 34 #include "modules/webdatabase/DatabaseThread.h" |
35 #include "modules/webdatabase/DatabaseTracker.h" | 35 #include "modules/webdatabase/DatabaseTracker.h" |
36 #include "modules/webdatabase/SQLTransaction.h" | 36 #include "modules/webdatabase/SQLTransaction.h" |
37 #include "modules/webdatabase/SQLTransactionBackend.h" | 37 #include "modules/webdatabase/SQLTransactionBackend.h" |
38 #include "modules/webdatabase/SQLTransactionClient.h" | 38 #include "modules/webdatabase/SQLTransactionClient.h" |
39 #include "modules/webdatabase/SQLTransactionCoordinator.h" | 39 #include "modules/webdatabase/SQLTransactionCoordinator.h" |
40 | 40 |
41 namespace WebCore { | 41 namespace blink { |
42 | 42 |
43 DatabaseBackend::DatabaseBackend(DatabaseContext* databaseContext, const String&
name, const String& expectedVersion, const String& displayName, unsigned long e
stimatedSize) | 43 DatabaseBackend::DatabaseBackend(DatabaseContext* databaseContext, const String&
name, const String& expectedVersion, const String& displayName, unsigned long e
stimatedSize) |
44 : DatabaseBackendBase(databaseContext, name, expectedVersion, displayName, e
stimatedSize, DatabaseType::Async) | 44 : DatabaseBackendBase(databaseContext, name, expectedVersion, displayName, e
stimatedSize, DatabaseType::Async) |
45 , m_transactionInProgress(false) | 45 , m_transactionInProgress(false) |
46 , m_isTransactionQueueEnabled(true) | 46 , m_isTransactionQueueEnabled(true) |
47 { | 47 { |
48 } | 48 } |
49 | 49 |
50 void DatabaseBackend::trace(Visitor* visitor) | 50 void DatabaseBackend::trace(Visitor* visitor) |
51 { | 51 { |
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 SQLTransactionClient* DatabaseBackend::transactionClient() const | 161 SQLTransactionClient* DatabaseBackend::transactionClient() const |
162 { | 162 { |
163 return databaseContext()->databaseThread()->transactionClient(); | 163 return databaseContext()->databaseThread()->transactionClient(); |
164 } | 164 } |
165 | 165 |
166 SQLTransactionCoordinator* DatabaseBackend::transactionCoordinator() const | 166 SQLTransactionCoordinator* DatabaseBackend::transactionCoordinator() const |
167 { | 167 { |
168 return databaseContext()->databaseThread()->transactionCoordinator(); | 168 return databaseContext()->databaseThread()->transactionCoordinator(); |
169 } | 169 } |
170 | 170 |
171 } // namespace WebCore | 171 } // namespace blink |
OLD | NEW |