| 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 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 // instantiating the backend. | 64 // instantiating the backend. |
| 65 return static_cast<Database*>(backend.get()); | 65 return static_cast<Database*>(backend.get()); |
| 66 } | 66 } |
| 67 | 67 |
| 68 Database::Database(DatabaseContext* databaseContext, | 68 Database::Database(DatabaseContext* databaseContext, |
| 69 const String& name, const String& expectedVersion, const String& displayName
, unsigned long estimatedSize) | 69 const String& name, const String& expectedVersion, const String& displayName
, unsigned long estimatedSize) |
| 70 : DatabaseBackend(databaseContext, name, expectedVersion, displayName, estim
atedSize) | 70 : DatabaseBackend(databaseContext, name, expectedVersion, displayName, estim
atedSize) |
| 71 , DatabaseBase(databaseContext->executionContext()) | 71 , DatabaseBase(databaseContext->executionContext()) |
| 72 , m_databaseContext(DatabaseBackend::databaseContext()) | 72 , m_databaseContext(DatabaseBackend::databaseContext()) |
| 73 { | 73 { |
| 74 ScriptWrappable::init(this); | |
| 75 m_databaseThreadSecurityOrigin = m_contextThreadSecurityOrigin->isolatedCopy
(); | 74 m_databaseThreadSecurityOrigin = m_contextThreadSecurityOrigin->isolatedCopy
(); |
| 76 setFrontend(this); | 75 setFrontend(this); |
| 77 | 76 |
| 78 ASSERT(m_databaseContext->databaseThread()); | 77 ASSERT(m_databaseContext->databaseThread()); |
| 79 } | 78 } |
| 80 | 79 |
| 81 Database::~Database() | 80 Database::~Database() |
| 82 { | 81 { |
| 83 } | 82 } |
| 84 | 83 |
| (...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 backend()->reportStartTransactionResult(errorSite, webSqlErrorCode, sqliteEr
rorCode); | 242 backend()->reportStartTransactionResult(errorSite, webSqlErrorCode, sqliteEr
rorCode); |
| 244 } | 243 } |
| 245 | 244 |
| 246 void Database::reportCommitTransactionResult(int errorSite, int webSqlErrorCode,
int sqliteErrorCode) | 245 void Database::reportCommitTransactionResult(int errorSite, int webSqlErrorCode,
int sqliteErrorCode) |
| 247 { | 246 { |
| 248 backend()->reportCommitTransactionResult(errorSite, webSqlErrorCode, sqliteE
rrorCode); | 247 backend()->reportCommitTransactionResult(errorSite, webSqlErrorCode, sqliteE
rrorCode); |
| 249 } | 248 } |
| 250 | 249 |
| 251 | 250 |
| 252 } // namespace blink | 251 } // namespace blink |
| OLD | NEW |