OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/worker/websharedworkerclient_proxy.h" | 5 #include "content/worker/websharedworkerclient_proxy.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 10 #include "content/child/shared_worker_devtools_agent.h" |
10 #include "content/child/webmessageportchannel_impl.h" | 11 #include "content/child/webmessageportchannel_impl.h" |
11 #include "content/common/worker_messages.h" | 12 #include "content/common/worker_messages.h" |
12 #include "content/public/common/content_switches.h" | 13 #include "content/public/common/content_switches.h" |
13 #include "content/worker/shared_worker_devtools_agent.h" | |
14 #include "content/worker/shared_worker_permission_client_proxy.h" | 14 #include "content/worker/shared_worker_permission_client_proxy.h" |
15 #include "content/worker/websharedworker_stub.h" | 15 #include "content/worker/websharedworker_stub.h" |
16 #include "content/worker/worker_thread.h" | 16 #include "content/worker/worker_thread.h" |
17 #include "content/worker/worker_webapplicationcachehost_impl.h" | 17 #include "content/worker/worker_webapplicationcachehost_impl.h" |
18 #include "ipc/ipc_logging.h" | 18 #include "ipc/ipc_logging.h" |
19 #include "third_party/WebKit/public/platform/WebString.h" | 19 #include "third_party/WebKit/public/platform/WebString.h" |
20 #include "third_party/WebKit/public/platform/WebURL.h" | 20 #include "third_party/WebKit/public/platform/WebURL.h" |
21 #include "third_party/WebKit/public/web/WebDocument.h" | 21 #include "third_party/WebKit/public/web/WebDocument.h" |
22 #include "third_party/WebKit/public/web/WebFrame.h" | 22 #include "third_party/WebKit/public/web/WebFrame.h" |
23 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" | 23 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" |
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 // page. It's ok to post several of theese, because the first executed task | 130 // page. It's ok to post several of theese, because the first executed task |
131 // will exit the message loop and subsequent ones won't be executed. | 131 // will exit the message loop and subsequent ones won't be executed. |
132 base::MessageLoop::current()->PostDelayedTask( | 132 base::MessageLoop::current()->PostDelayedTask( |
133 FROM_HERE, | 133 FROM_HERE, |
134 base::Bind(&WebSharedWorkerClientProxy::workerContextDestroyed, | 134 base::Bind(&WebSharedWorkerClientProxy::workerContextDestroyed, |
135 weak_factory_.GetWeakPtr()), | 135 weak_factory_.GetWeakPtr()), |
136 base::TimeDelta::FromSeconds(kMaxTimeForRunawayWorkerSeconds)); | 136 base::TimeDelta::FromSeconds(kMaxTimeForRunawayWorkerSeconds)); |
137 } | 137 } |
138 | 138 |
139 } // namespace content | 139 } // namespace content |
OLD | NEW |