| 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 are | 5 * modification, are permitted provided that the following conditions are |
| 6 * met: | 6 * met: |
| 7 * | 7 * |
| 8 * * Redistributions of source code must retain the above copyright | 8 * * 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 * * Redistributions in binary form must reproduce the above | 10 * * Redistributions in binary form must reproduce the above |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 PassRefPtrWillBeRawPtr<DatabaseSync> DatabaseSync::create(ExecutionContext*, Pas
sRefPtrWillBeRawPtr<DatabaseBackendBase> backend) | 51 PassRefPtrWillBeRawPtr<DatabaseSync> DatabaseSync::create(ExecutionContext*, Pas
sRefPtrWillBeRawPtr<DatabaseBackendBase> backend) |
| 52 { | 52 { |
| 53 return static_cast<DatabaseSync*>(backend.get()); | 53 return static_cast<DatabaseSync*>(backend.get()); |
| 54 } | 54 } |
| 55 | 55 |
| 56 DatabaseSync::DatabaseSync(DatabaseContext* databaseContext, | 56 DatabaseSync::DatabaseSync(DatabaseContext* databaseContext, |
| 57 const String& name, const String& expectedVersion, const String& displayName
, unsigned long estimatedSize) | 57 const String& name, const String& expectedVersion, const String& displayName
, unsigned long estimatedSize) |
| 58 : DatabaseBackendSync(databaseContext, name, expectedVersion, displayName, e
stimatedSize) | 58 : DatabaseBackendSync(databaseContext, name, expectedVersion, displayName, e
stimatedSize) |
| 59 , DatabaseBase(databaseContext->executionContext()) | 59 , DatabaseBase(databaseContext->executionContext()) |
| 60 { | 60 { |
| 61 ScriptWrappable::init(this); | |
| 62 setFrontend(this); | 61 setFrontend(this); |
| 63 } | 62 } |
| 64 | 63 |
| 65 DatabaseSync::~DatabaseSync() | 64 DatabaseSync::~DatabaseSync() |
| 66 { | 65 { |
| 67 #if !ENABLE(OILPAN) | 66 #if !ENABLE(OILPAN) |
| 68 if (executionContext()) | 67 if (executionContext()) |
| 69 ASSERT(executionContext()->isContextThread()); | 68 ASSERT(executionContext()->isContextThread()); |
| 70 #endif | 69 #endif |
| 71 } | 70 } |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 204 } | 203 } |
| 205 | 204 |
| 206 #if ENABLE(OILPAN) | 205 #if ENABLE(OILPAN) |
| 207 DatabaseSync::TransactionObserver::~TransactionObserver() | 206 DatabaseSync::TransactionObserver::~TransactionObserver() |
| 208 { | 207 { |
| 209 m_transaction.rollbackIfInProgress(); | 208 m_transaction.rollbackIfInProgress(); |
| 210 } | 209 } |
| 211 #endif | 210 #endif |
| 212 | 211 |
| 213 } // namespace blink | 212 } // namespace blink |
| OLD | NEW |