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 #include "chrome/worker/webworkerclient_proxy.h" | 5 #include "chrome/worker/webworkerclient_proxy.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chrome/common/child_process.h" | 8 #include "chrome/common/child_process.h" |
9 #include "chrome/common/chrome_switches.h" | 9 #include "chrome/common/chrome_switches.h" |
10 #include "chrome/common/ipc_logging.h" | |
11 #include "chrome/common/worker_messages.h" | 10 #include "chrome/common/worker_messages.h" |
12 #include "chrome/renderer/webworker_proxy.h" | 11 #include "chrome/renderer/webworker_proxy.h" |
13 #include "chrome/worker/worker_thread.h" | 12 #include "chrome/worker/worker_thread.h" |
14 #include "chrome/worker/nativewebworker_impl.h" | 13 #include "chrome/worker/nativewebworker_impl.h" |
| 14 #include "ipc/ipc_logging.h" |
15 #include "webkit/api/public/WebString.h" | 15 #include "webkit/api/public/WebString.h" |
16 #include "webkit/api/public/WebURL.h" | 16 #include "webkit/api/public/WebURL.h" |
17 #include "webkit/api/public/WebWorker.h" | 17 #include "webkit/api/public/WebWorker.h" |
18 | 18 |
19 using WebKit::WebString; | 19 using WebKit::WebString; |
20 using WebKit::WebWorker; | 20 using WebKit::WebWorker; |
21 using WebKit::WebWorkerClient; | 21 using WebKit::WebWorkerClient; |
22 | 22 |
23 namespace { | 23 namespace { |
24 | 24 |
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 switches::kWebWorkerShareProcesses)) { | 159 switches::kWebWorkerShareProcesses)) { |
160 // Can't kill the process since there could be workers from other | 160 // Can't kill the process since there could be workers from other |
161 // renderer process. | 161 // renderer process. |
162 NOTIMPLEMENTED(); | 162 NOTIMPLEMENTED(); |
163 return; | 163 return; |
164 } | 164 } |
165 | 165 |
166 MessageLoop::current()->PostDelayedTask(FROM_HERE, | 166 MessageLoop::current()->PostDelayedTask(FROM_HERE, |
167 new KillProcessTask(this), kMaxTimeForRunawayWorkerMs); | 167 new KillProcessTask(this), kMaxTimeForRunawayWorkerMs); |
168 } | 168 } |
OLD | NEW |