OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 CONTENT_RENDERER_WEBWORKER_BASE_H_ | 5 #ifndef CONTENT_RENDERER_WEBWORKER_BASE_H_ |
6 #define CONTENT_RENDERER_WEBWORKER_BASE_H_ | 6 #define CONTENT_RENDERER_WEBWORKER_BASE_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
11 | 11 |
12 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
13 #include "base/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "ipc/ipc_channel.h" | 14 #include "ipc/ipc_channel.h" |
15 | 15 |
16 class ChildThread; | 16 class ChildThread; |
17 class GURL; | 17 class GURL; |
18 class WorkerDevToolsAgentProxy; | 18 class WorkerDevToolsAgentProxy; |
19 | 19 |
20 // WebWorkerBase is the common base class used by both WebWorkerProxy and | 20 // WebWorkerBase is the common base class used by both WebWorkerProxy and |
21 // WebSharedWorker. It contains logic to support starting up both dedicated | 21 // WebSharedWorker. It contains logic to support starting up both dedicated |
22 // and shared workers, and handling message queueing while waiting for the | 22 // and shared workers, and handling message queueing while waiting for the |
23 // worker process to start. | 23 // worker process to start. |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
96 unsigned long long document_id_; | 96 unsigned long long document_id_; |
97 | 97 |
98 // ID of our parent's appcache host, only valid for dedicated workers. | 98 // ID of our parent's appcache host, only valid for dedicated workers. |
99 int parent_appcache_host_id_; | 99 int parent_appcache_host_id_; |
100 | 100 |
101 // Stores messages that were sent before the StartWorkerContext message. | 101 // Stores messages that were sent before the StartWorkerContext message. |
102 std::vector<IPC::Message*> queued_messages_; | 102 std::vector<IPC::Message*> queued_messages_; |
103 }; | 103 }; |
104 | 104 |
105 #endif // CONTENT_RENDERER_WEBWORKER_BASE_H_ | 105 #endif // CONTENT_RENDERER_WEBWORKER_BASE_H_ |
OLD | NEW |