| 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 28 matching lines...) Expand all Loading... |
| 39 #include "modules/webdatabase/DatabaseContext.h" | 39 #include "modules/webdatabase/DatabaseContext.h" |
| 40 #include "modules/webdatabase/SQLError.h" | 40 #include "modules/webdatabase/SQLError.h" |
| 41 #include "modules/webdatabase/SQLStatementCallback.h" | 41 #include "modules/webdatabase/SQLStatementCallback.h" |
| 42 #include "modules/webdatabase/SQLStatementErrorCallback.h" | 42 #include "modules/webdatabase/SQLStatementErrorCallback.h" |
| 43 #include "modules/webdatabase/SQLTransactionCallback.h" | 43 #include "modules/webdatabase/SQLTransactionCallback.h" |
| 44 #include "modules/webdatabase/SQLTransactionClient.h" // FIXME: Should be used i
n the backend only. | 44 #include "modules/webdatabase/SQLTransactionClient.h" // FIXME: Should be used i
n the backend only. |
| 45 #include "modules/webdatabase/SQLTransactionErrorCallback.h" | 45 #include "modules/webdatabase/SQLTransactionErrorCallback.h" |
| 46 #include "wtf/StdLibExtras.h" | 46 #include "wtf/StdLibExtras.h" |
| 47 #include "wtf/Vector.h" | 47 #include "wtf/Vector.h" |
| 48 | 48 |
| 49 namespace WebCore { | 49 namespace blink { |
| 50 | 50 |
| 51 PassRefPtrWillBeRawPtr<SQLTransaction> SQLTransaction::create(Database* db, Pass
OwnPtr<SQLTransactionCallback> callback, | 51 PassRefPtrWillBeRawPtr<SQLTransaction> SQLTransaction::create(Database* db, Pass
OwnPtr<SQLTransactionCallback> callback, |
| 52 PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<SQLTransactionErrorCall
back> errorCallback, | 52 PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<SQLTransactionErrorCall
back> errorCallback, |
| 53 bool readOnly) | 53 bool readOnly) |
| 54 { | 54 { |
| 55 return adoptRefWillBeNoop(new SQLTransaction(db, callback, successCallback,
errorCallback, readOnly)); | 55 return adoptRefWillBeNoop(new SQLTransaction(db, callback, successCallback,
errorCallback, readOnly)); |
| 56 } | 56 } |
| 57 | 57 |
| 58 SQLTransaction::SQLTransaction(Database* db, PassOwnPtr<SQLTransactionCallback>
callback, | 58 SQLTransaction::SQLTransaction(Database* db, PassOwnPtr<SQLTransactionCallback>
callback, |
| 59 PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<SQLTransactionErrorCall
back> errorCallback, | 59 PassOwnPtr<VoidCallback> successCallback, PassOwnPtr<SQLTransactionErrorCall
back> errorCallback, |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 314 m_callbackWrapper.clear(); | 314 m_callbackWrapper.clear(); |
| 315 m_successCallbackWrapper.clear(); | 315 m_successCallbackWrapper.clear(); |
| 316 m_errorCallbackWrapper.clear(); | 316 m_errorCallbackWrapper.clear(); |
| 317 } | 317 } |
| 318 | 318 |
| 319 PassOwnPtr<SQLTransactionErrorCallback> SQLTransaction::releaseErrorCallback() | 319 PassOwnPtr<SQLTransactionErrorCallback> SQLTransaction::releaseErrorCallback() |
| 320 { | 320 { |
| 321 return m_errorCallbackWrapper.unwrap(); | 321 return m_errorCallbackWrapper.unwrap(); |
| 322 } | 322 } |
| 323 | 323 |
| 324 } // namespace WebCore | 324 } // namespace blink |
| OLD | NEW |