OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2007, 2008, 2013 Apple Inc. All rights reserved. | 2 * Copyright (C) 2007, 2008, 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 * | 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 | 78 |
79 ASSERT(m_databaseContext->databaseThread()); | 79 ASSERT(m_databaseContext->databaseThread()); |
80 } | 80 } |
81 | 81 |
82 Database::~Database() | 82 Database::~Database() |
83 { | 83 { |
84 } | 84 } |
85 | 85 |
86 void Database::trace(Visitor* visitor) | 86 void Database::trace(Visitor* visitor) |
87 { | 87 { |
| 88 visitor->trace(m_databaseContext); |
88 DatabaseBackend::trace(visitor); | 89 DatabaseBackend::trace(visitor); |
89 } | 90 } |
90 | 91 |
91 Database* Database::from(DatabaseBackend* backend) | 92 Database* Database::from(DatabaseBackend* backend) |
92 { | 93 { |
93 return static_cast<Database*>(backend->m_frontend); | 94 return static_cast<Database*>(backend->m_frontend); |
94 } | 95 } |
95 | 96 |
96 PassRefPtrWillBeRawPtr<DatabaseBackend> Database::backend() | 97 PassRefPtrWillBeRawPtr<DatabaseBackend> Database::backend() |
97 { | 98 { |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 backend()->reportStartTransactionResult(errorSite, webSqlErrorCode, sqliteEr
rorCode); | 244 backend()->reportStartTransactionResult(errorSite, webSqlErrorCode, sqliteEr
rorCode); |
244 } | 245 } |
245 | 246 |
246 void Database::reportCommitTransactionResult(int errorSite, int webSqlErrorCode,
int sqliteErrorCode) | 247 void Database::reportCommitTransactionResult(int errorSite, int webSqlErrorCode,
int sqliteErrorCode) |
247 { | 248 { |
248 backend()->reportCommitTransactionResult(errorSite, webSqlErrorCode, sqliteE
rrorCode); | 249 backend()->reportCommitTransactionResult(errorSite, webSqlErrorCode, sqliteE
rrorCode); |
249 } | 250 } |
250 | 251 |
251 | 252 |
252 } // namespace WebCore | 253 } // namespace WebCore |
OLD | NEW |