Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(129)

Side by Side Diff: content/worker/websharedworkerclient_proxy.cc

Issue 19620002: Use a direct include of the message_loop header in content/, part 4. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/utility/utility_main.cc ('k') | content/worker/worker_main.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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.h" 9 #include "base/message_loop/message_loop.h"
10 #include "content/child/fileapi/file_system_dispatcher.h" 10 #include "content/child/fileapi/file_system_dispatcher.h"
11 #include "content/child/fileapi/webfilesystem_callback_adapters.h" 11 #include "content/child/fileapi/webfilesystem_callback_adapters.h"
12 #include "content/child/quota_dispatcher.h" 12 #include "content/child/quota_dispatcher.h"
13 #include "content/child/webmessageportchannel_impl.h" 13 #include "content/child/webmessageportchannel_impl.h"
14 #include "content/common/worker_messages.h" 14 #include "content/common/worker_messages.h"
15 #include "content/public/common/content_switches.h" 15 #include "content/public/common/content_switches.h"
16 #include "content/worker/shared_worker_devtools_agent.h" 16 #include "content/worker/shared_worker_devtools_agent.h"
17 #include "content/worker/websharedworker_stub.h" 17 #include "content/worker/websharedworker_stub.h"
18 #include "content/worker/worker_thread.h" 18 #include "content/worker/worker_thread.h"
19 #include "content/worker/worker_webapplicationcachehost_impl.h" 19 #include "content/worker/worker_webapplicationcachehost_impl.h"
20 #include "ipc/ipc_logging.h" 20 #include "ipc/ipc_logging.h"
21 #include "third_party/WebKit/public/platform/WebString.h"
22 #include "third_party/WebKit/public/platform/WebURL.h"
21 #include "third_party/WebKit/public/web/WebDocument.h" 23 #include "third_party/WebKit/public/web/WebDocument.h"
22 #include "third_party/WebKit/public/web/WebFileSystemCallbacks.h" 24 #include "third_party/WebKit/public/web/WebFileSystemCallbacks.h"
23 #include "third_party/WebKit/public/web/WebFrame.h" 25 #include "third_party/WebKit/public/web/WebFrame.h"
24 #include "third_party/WebKit/public/web/WebSecurityOrigin.h" 26 #include "third_party/WebKit/public/web/WebSecurityOrigin.h"
25 #include "third_party/WebKit/public/platform/WebString.h"
26 #include "third_party/WebKit/public/platform/WebURL.h"
27 27
28 using WebKit::WebApplicationCacheHost; 28 using WebKit::WebApplicationCacheHost;
29 using WebKit::WebFrame; 29 using WebKit::WebFrame;
30 using WebKit::WebMessagePortChannel; 30 using WebKit::WebMessagePortChannel;
31 using WebKit::WebMessagePortChannelArray; 31 using WebKit::WebMessagePortChannelArray;
32 using WebKit::WebSecurityOrigin; 32 using WebKit::WebSecurityOrigin;
33 using WebKit::WebString; 33 using WebKit::WebString;
34 using WebKit::WebWorker; 34 using WebKit::WebWorker;
35 using WebKit::WebSharedWorkerClient; 35 using WebKit::WebSharedWorkerClient;
36 36
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
210 // page. It's ok to post several of theese, because the first executed task 210 // page. It's ok to post several of theese, because the first executed task
211 // will exit the message loop and subsequent ones won't be executed. 211 // will exit the message loop and subsequent ones won't be executed.
212 base::MessageLoop::current()->PostDelayedTask( 212 base::MessageLoop::current()->PostDelayedTask(
213 FROM_HERE, 213 FROM_HERE,
214 base::Bind(&WebSharedWorkerClientProxy::workerContextDestroyed, 214 base::Bind(&WebSharedWorkerClientProxy::workerContextDestroyed,
215 weak_factory_.GetWeakPtr()), 215 weak_factory_.GetWeakPtr()),
216 base::TimeDelta::FromSeconds(kMaxTimeForRunawayWorkerSeconds)); 216 base::TimeDelta::FromSeconds(kMaxTimeForRunawayWorkerSeconds));
217 } 217 }
218 218
219 } // namespace content 219 } // namespace content
OLDNEW
« no previous file with comments | « content/utility/utility_main.cc ('k') | content/worker/worker_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698