| 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 27 matching lines...) Expand all Loading... |
| 38 #include "WebFrameImpl.h" | 38 #include "WebFrameImpl.h" |
| 39 #include "WebPermissionClient.h" | 39 #include "WebPermissionClient.h" |
| 40 #include "WebSecurityOrigin.h" | 40 #include "WebSecurityOrigin.h" |
| 41 #include "WebViewImpl.h" | 41 #include "WebViewImpl.h" |
| 42 #include "WebWorkerBase.h" | 42 #include "WebWorkerBase.h" |
| 43 #include "WorkerAllowMainThreadBridgeBase.h" | 43 #include "WorkerAllowMainThreadBridgeBase.h" |
| 44 #include "bindings/v8/WorkerScriptController.h" | 44 #include "bindings/v8/WorkerScriptController.h" |
| 45 #include "core/dom/CrossThreadTask.h" | 45 #include "core/dom/CrossThreadTask.h" |
| 46 #include "core/dom/Document.h" | 46 #include "core/dom/Document.h" |
| 47 #include "core/dom/ExecutionContext.h" | 47 #include "core/dom/ExecutionContext.h" |
| 48 #include "core/platform/CrossThreadCopier.h" | |
| 49 #include "core/workers/WorkerGlobalScope.h" | 48 #include "core/workers/WorkerGlobalScope.h" |
| 50 #include "core/workers/WorkerLoaderProxy.h" | 49 #include "core/workers/WorkerLoaderProxy.h" |
| 51 #include "core/workers/WorkerThread.h" | 50 #include "core/workers/WorkerThread.h" |
| 52 #include "modules/webdatabase/DatabaseBackendBase.h" | 51 #include "modules/webdatabase/DatabaseBackendBase.h" |
| 53 #include "modules/webdatabase/DatabaseContext.h" | 52 #include "modules/webdatabase/DatabaseContext.h" |
| 53 #include "platform/CrossThreadCopier.h" |
| 54 | 54 |
| 55 using namespace WebKit; | 55 using namespace WebKit; |
| 56 | 56 |
| 57 namespace { | 57 namespace { |
| 58 | 58 |
| 59 static const char allowDatabaseMode[] = "allowDatabaseMode"; | 59 static const char allowDatabaseMode[] = "allowDatabaseMode"; |
| 60 | 60 |
| 61 // This class is used to route the result of the WebWorkerBase::allowDatabase | 61 // This class is used to route the result of the WebWorkerBase::allowDatabase |
| 62 // call back to the worker context. | 62 // call back to the worker context. |
| 63 class AllowDatabaseMainThreadBridge : public WorkerAllowMainThreadBridgeBase { | 63 class AllowDatabaseMainThreadBridge : public WorkerAllowMainThreadBridgeBase { |
| (...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 196 { | 196 { |
| 197 WebDatabase::observer()->reportExecuteStatementResult(WebDatabase(database),
errorSite, webSqlErrorCode, sqliteErrorCode); | 197 WebDatabase::observer()->reportExecuteStatementResult(WebDatabase(database),
errorSite, webSqlErrorCode, sqliteErrorCode); |
| 198 } | 198 } |
| 199 | 199 |
| 200 void DatabaseObserver::reportVacuumDatabaseResult(DatabaseBackendBase* database,
int sqliteErrorCode) | 200 void DatabaseObserver::reportVacuumDatabaseResult(DatabaseBackendBase* database,
int sqliteErrorCode) |
| 201 { | 201 { |
| 202 WebDatabase::observer()->reportVacuumDatabaseResult(WebDatabase(database), s
qliteErrorCode); | 202 WebDatabase::observer()->reportVacuumDatabaseResult(WebDatabase(database), s
qliteErrorCode); |
| 203 } | 203 } |
| 204 | 204 |
| 205 } // namespace WebCore | 205 } // namespace WebCore |
| OLD | NEW |