OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/shared_worker/shared_worker_message_filter.h" | 5 #include "content/browser/shared_worker/shared_worker_message_filter.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "content/browser/message_port_message_filter.h" | 10 #include "content/browser/message_port_message_filter.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 // Only sent from renderer for now, until we have nested workers. | 51 // Only sent from renderer for now, until we have nested workers. |
52 IPC_MESSAGE_HANDLER(ViewHostMsg_CreateWorker, OnCreateWorker) | 52 IPC_MESSAGE_HANDLER(ViewHostMsg_CreateWorker, OnCreateWorker) |
53 IPC_MESSAGE_FORWARD(ViewHostMsg_ConnectToWorker, | 53 IPC_MESSAGE_FORWARD(ViewHostMsg_ConnectToWorker, |
54 SharedWorkerServiceImpl::GetInstance(), | 54 SharedWorkerServiceImpl::GetInstance(), |
55 SharedWorkerServiceImpl::ConnectToWorker) | 55 SharedWorkerServiceImpl::ConnectToWorker) |
56 // Only sent from renderer. | 56 // Only sent from renderer. |
57 IPC_MESSAGE_FORWARD(ViewHostMsg_DocumentDetached, | 57 IPC_MESSAGE_FORWARD(ViewHostMsg_DocumentDetached, |
58 SharedWorkerServiceImpl::GetInstance(), | 58 SharedWorkerServiceImpl::GetInstance(), |
59 SharedWorkerServiceImpl::DocumentDetached) | 59 SharedWorkerServiceImpl::DocumentDetached) |
60 // Only sent from SharedWorker in renderer. | 60 // Only sent from SharedWorker in renderer. |
| 61 IPC_MESSAGE_FORWARD(WorkerHostMsg_CountFeature, |
| 62 SharedWorkerServiceImpl::GetInstance(), |
| 63 SharedWorkerServiceImpl::CountFeature) |
61 IPC_MESSAGE_FORWARD(WorkerHostMsg_WorkerContextClosed, | 64 IPC_MESSAGE_FORWARD(WorkerHostMsg_WorkerContextClosed, |
62 SharedWorkerServiceImpl::GetInstance(), | 65 SharedWorkerServiceImpl::GetInstance(), |
63 SharedWorkerServiceImpl::WorkerContextClosed) | 66 SharedWorkerServiceImpl::WorkerContextClosed) |
64 IPC_MESSAGE_FORWARD(WorkerHostMsg_WorkerContextDestroyed, | 67 IPC_MESSAGE_FORWARD(WorkerHostMsg_WorkerContextDestroyed, |
65 SharedWorkerServiceImpl::GetInstance(), | 68 SharedWorkerServiceImpl::GetInstance(), |
66 SharedWorkerServiceImpl::WorkerContextDestroyed) | 69 SharedWorkerServiceImpl::WorkerContextDestroyed) |
67 IPC_MESSAGE_FORWARD(WorkerHostMsg_WorkerReadyForInspection, | 70 IPC_MESSAGE_FORWARD(WorkerHostMsg_WorkerReadyForInspection, |
68 SharedWorkerServiceImpl::GetInstance(), | 71 SharedWorkerServiceImpl::GetInstance(), |
69 SharedWorkerServiceImpl::WorkerReadyForInspection) | 72 SharedWorkerServiceImpl::WorkerReadyForInspection) |
70 IPC_MESSAGE_FORWARD(WorkerHostMsg_WorkerScriptLoaded, | 73 IPC_MESSAGE_FORWARD(WorkerHostMsg_WorkerScriptLoaded, |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 | 111 |
109 void SharedWorkerMessageFilter::OnAllowIndexedDB(int worker_route_id, | 112 void SharedWorkerMessageFilter::OnAllowIndexedDB(int worker_route_id, |
110 const GURL& url, | 113 const GURL& url, |
111 const base::string16& name, | 114 const base::string16& name, |
112 bool* result) { | 115 bool* result) { |
113 SharedWorkerServiceImpl::GetInstance()->AllowIndexedDB(this, worker_route_id, | 116 SharedWorkerServiceImpl::GetInstance()->AllowIndexedDB(this, worker_route_id, |
114 url, name, result); | 117 url, name, result); |
115 } | 118 } |
116 | 119 |
117 } // namespace content | 120 } // namespace content |
OLD | NEW |