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 24 matching lines...) Expand all Loading... |
35 #include "core/dom/ExceptionCode.h" | 35 #include "core/dom/ExceptionCode.h" |
36 #include "core/dom/ExecutionContext.h" | 36 #include "core/dom/ExecutionContext.h" |
37 #include "platform/Logging.h" | 37 #include "platform/Logging.h" |
38 #include "modules/webdatabase/DatabaseCallback.h" | 38 #include "modules/webdatabase/DatabaseCallback.h" |
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 "platform/weborigin/SecurityOrigin.h" | |
46 #include "wtf/PassRefPtr.h" | 45 #include "wtf/PassRefPtr.h" |
47 #include "wtf/RefPtr.h" | 46 #include "wtf/RefPtr.h" |
48 #include "wtf/text/CString.h" | 47 #include "wtf/text/CString.h" |
49 | 48 |
50 namespace WebCore { | 49 namespace WebCore { |
51 | 50 |
52 PassRefPtr<DatabaseSync> DatabaseSync::create(ExecutionContext*, PassRefPtr<Data
baseBackendBase> backend) | 51 PassRefPtr<DatabaseSync> DatabaseSync::create(ExecutionContext*, PassRefPtr<Data
baseBackendBase> backend) |
53 { | 52 { |
54 return static_cast<DatabaseSync*>(backend.get()); | 53 return static_cast<DatabaseSync*>(backend.get()); |
55 } | 54 } |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
188 ASSERT(m_executionContext->isContextThread()); | 187 ASSERT(m_executionContext->isContextThread()); |
189 | 188 |
190 if (!opened()) | 189 if (!opened()) |
191 return; | 190 return; |
192 | 191 |
193 logErrorMessage("forcibly closing database"); | 192 logErrorMessage("forcibly closing database"); |
194 closeDatabase(); | 193 closeDatabase(); |
195 } | 194 } |
196 | 195 |
197 } // namespace WebCore | 196 } // namespace WebCore |
OLD | NEW |