| 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 28 matching lines...) Expand all Loading... |
| 39 #include "modules/webdatabase/DatabaseContext.h" | 39 #include "modules/webdatabase/DatabaseContext.h" |
| 40 #include "modules/webdatabase/DatabaseManager.h" | 40 #include "modules/webdatabase/DatabaseManager.h" |
| 41 #include "modules/webdatabase/DatabaseTracker.h" | 41 #include "modules/webdatabase/DatabaseTracker.h" |
| 42 #include "modules/webdatabase/SQLError.h" | 42 #include "modules/webdatabase/SQLError.h" |
| 43 #include "modules/webdatabase/SQLTransactionSync.h" | 43 #include "modules/webdatabase/SQLTransactionSync.h" |
| 44 #include "modules/webdatabase/SQLTransactionSyncCallback.h" | 44 #include "modules/webdatabase/SQLTransactionSyncCallback.h" |
| 45 #include "wtf/PassRefPtr.h" | 45 #include "wtf/PassRefPtr.h" |
| 46 #include "wtf/RefPtr.h" | 46 #include "wtf/RefPtr.h" |
| 47 #include "wtf/text/CString.h" | 47 #include "wtf/text/CString.h" |
| 48 | 48 |
| 49 namespace WebCore { | 49 namespace blink { |
| 50 | 50 |
| 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()) |
| (...skipping 143 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 203 #endif | 203 #endif |
| 204 } | 204 } |
| 205 | 205 |
| 206 #if ENABLE(OILPAN) | 206 #if ENABLE(OILPAN) |
| 207 DatabaseSync::TransactionObserver::~TransactionObserver() | 207 DatabaseSync::TransactionObserver::~TransactionObserver() |
| 208 { | 208 { |
| 209 m_transaction.rollbackIfInProgress(); | 209 m_transaction.rollbackIfInProgress(); |
| 210 } | 210 } |
| 211 #endif | 211 #endif |
| 212 | 212 |
| 213 } // namespace WebCore | 213 } // namespace blink |
| OLD | NEW |