Index: content/browser/worker_host/worker_process_host.cc |
diff --git a/content/browser/worker_host/worker_process_host.cc b/content/browser/worker_host/worker_process_host.cc |
index 2e21487d7f70df6b8babba01ed7e34432566e22b..de465db00ce39c4028e06197957d13ca30ad76c4 100644 |
--- a/content/browser/worker_host/worker_process_host.cc |
+++ b/content/browser/worker_host/worker_process_host.cc |
@@ -334,6 +334,7 @@ bool WorkerProcessHost::OnMessageReceived(const IPC::Message& message) { |
OnWorkerContextClosed) |
IPC_MESSAGE_HANDLER(WorkerProcessHostMsg_AllowDatabase, OnAllowDatabase) |
IPC_MESSAGE_HANDLER(WorkerProcessHostMsg_AllowFileSystem, OnAllowFileSystem) |
+ IPC_MESSAGE_HANDLER(WorkerProcessHostMsg_AllowIndexedDB, OnAllowIndexedDB) |
IPC_MESSAGE_UNHANDLED(handled = false) |
IPC_END_MESSAGE_MAP_EX() |
@@ -397,6 +398,14 @@ void WorkerProcessHost::OnAllowFileSystem(int worker_route_id, |
url, resource_context_, GetRenderViewIDsForWorker(worker_route_id)); |
} |
+void WorkerProcessHost::OnAllowIndexedDB(int worker_route_id, |
+ const GURL& url, |
+ const string16& name, |
+ bool* result) { |
+ *result = content::GetContentClient()->browser()->AllowWorkerIndexedDB( |
+ url, name, resource_context_, GetRenderViewIDsForWorker(worker_route_id)); |
+} |
+ |
void WorkerProcessHost::RelayMessage( |
const IPC::Message& message, |
WorkerMessageFilter* filter, |