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 13 matching lines...) Expand all Loading... |
24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | 24 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY | 25 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT | 26 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE | 27 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE |
28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | 28 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
29 */ | 29 */ |
30 | 30 |
31 #include "config.h" | 31 #include "config.h" |
32 #include "DatabaseObserver.h" | 32 #include "DatabaseObserver.h" |
33 | 33 |
34 #include "CrossThreadTask.h" | |
35 #include "DatabaseBackendBase.h" | 34 #include "DatabaseBackendBase.h" |
36 #include "DatabaseBackendContext.h" | 35 #include "DatabaseBackendContext.h" |
37 #include "Document.h" | |
38 #include "ScriptExecutionContext.h" | |
39 #include "WebCommonWorkerClient.h" | 36 #include "WebCommonWorkerClient.h" |
40 #include "WebDatabase.h" | 37 #include "WebDatabase.h" |
41 #include "WebDatabaseObserver.h" | 38 #include "WebDatabaseObserver.h" |
42 #include "WebFrameClient.h" | 39 #include "WebFrameClient.h" |
43 #include "WebFrameImpl.h" | 40 #include "WebFrameImpl.h" |
44 #include "WebPermissionClient.h" | 41 #include "WebPermissionClient.h" |
45 #include "WebSecurityOrigin.h" | 42 #include "WebSecurityOrigin.h" |
46 #include "WebViewImpl.h" | 43 #include "WebViewImpl.h" |
47 #include "WebWorkerBase.h" | 44 #include "WebWorkerBase.h" |
48 #include "WorkerContext.h" | 45 #include "WorkerContext.h" |
49 #include "WorkerLoaderProxy.h" | 46 #include "WorkerLoaderProxy.h" |
50 #include "WorkerScriptController.h" | 47 #include "WorkerScriptController.h" |
51 #include "WorkerThread.h" | 48 #include "WorkerThread.h" |
| 49 #include "core/dom/CrossThreadTask.h" |
| 50 #include "core/dom/Document.h" |
| 51 #include "core/dom/ScriptExecutionContext.h" |
52 #include "core/platform/CrossThreadCopier.h" | 52 #include "core/platform/CrossThreadCopier.h" |
53 | 53 |
54 using namespace WebKit; | 54 using namespace WebKit; |
55 | 55 |
56 namespace { | 56 namespace { |
57 | 57 |
58 static const char allowDatabaseMode[] = "allowDatabaseMode"; | 58 static const char allowDatabaseMode[] = "allowDatabaseMode"; |
59 | 59 |
60 // This class is used to route the result of the WebWorkerBase::allowDatabase | 60 // This class is used to route the result of the WebWorkerBase::allowDatabase |
61 // call back to the worker context. | 61 // call back to the worker context. |
(...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 { | 210 { |
211 WebDatabase::observer()->reportExecuteStatementResult(WebDatabase(database),
errorSite, webSqlErrorCode, sqliteErrorCode); | 211 WebDatabase::observer()->reportExecuteStatementResult(WebDatabase(database),
errorSite, webSqlErrorCode, sqliteErrorCode); |
212 } | 212 } |
213 | 213 |
214 void DatabaseObserver::reportVacuumDatabaseResult(DatabaseBackendBase* database,
int sqliteErrorCode) | 214 void DatabaseObserver::reportVacuumDatabaseResult(DatabaseBackendBase* database,
int sqliteErrorCode) |
215 { | 215 { |
216 WebDatabase::observer()->reportVacuumDatabaseResult(WebDatabase(database), s
qliteErrorCode); | 216 WebDatabase::observer()->reportVacuumDatabaseResult(WebDatabase(database), s
qliteErrorCode); |
217 } | 217 } |
218 | 218 |
219 } // namespace WebCore | 219 } // namespace WebCore |
OLD | NEW |