OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 #ifndef CHROME_RENDERER_WEBWORKER_PROXY_H_ | 5 #ifndef CHROME_RENDERER_WEBWORKER_PROXY_H_ |
6 #define CHROME_RENDERER_WEBWORKER_PROXY_H_ | 6 #define CHROME_RENDERER_WEBWORKER_PROXY_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
11 #include "chrome/common/ipc_channel.h" | 11 #include "ipc/ipc_channel.h" |
12 #include "webkit/api/public/WebWorker.h" | 12 #include "webkit/api/public/WebWorker.h" |
13 | 13 |
14 class ChildThread; | 14 class ChildThread; |
15 class GURL; | 15 class GURL; |
16 class RenderView; | 16 class RenderView; |
17 struct WorkerHostMsg_PostConsoleMessageToWorkerObject_Params; | 17 struct WorkerHostMsg_PostConsoleMessageToWorkerObject_Params; |
18 | 18 |
19 // This class provides an implementation of WebWorker that the renderer provides | 19 // This class provides an implementation of WebWorker that the renderer provides |
20 // to the glue. This class converts function calls to IPC messages that are | 20 // to the glue. This class converts function calls to IPC messages that are |
21 // dispatched in the worker process by WebWorkerClientProxy. It also receives | 21 // dispatched in the worker process by WebWorkerClientProxy. It also receives |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // messages. | 61 // messages. |
62 WebKit::WebWorkerClient* client_; | 62 WebKit::WebWorkerClient* client_; |
63 | 63 |
64 // Stores messages that were sent before the StartWorkerContext message. | 64 // Stores messages that were sent before the StartWorkerContext message. |
65 std::vector<IPC::Message*> queued_messages_; | 65 std::vector<IPC::Message*> queued_messages_; |
66 | 66 |
67 DISALLOW_COPY_AND_ASSIGN(WebWorkerProxy); | 67 DISALLOW_COPY_AND_ASSIGN(WebWorkerProxy); |
68 }; | 68 }; |
69 | 69 |
70 #endif // CHROME_RENDERER_WEBWORKER_PROXY_H_ | 70 #endif // CHROME_RENDERER_WEBWORKER_PROXY_H_ |
OLD | NEW |