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

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

Issue 8277018: Move content_switches to content\public\common. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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_thread.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) 2011 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 #include "content/worker/webworkerclient_proxy.h" 5 #include "content/worker/webworkerclient_proxy.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "content/common/content_switches.h"
10 #include "content/common/file_system/file_system_dispatcher.h" 9 #include "content/common/file_system/file_system_dispatcher.h"
11 #include "content/common/file_system/webfilesystem_callback_dispatcher.h" 10 #include "content/common/file_system/webfilesystem_callback_dispatcher.h"
12 #include "content/common/webmessageportchannel_impl.h" 11 #include "content/common/webmessageportchannel_impl.h"
13 #include "content/common/worker_messages.h" 12 #include "content/common/worker_messages.h"
13 #include "content/public/common/content_switches.h"
14 // TODO(jam): uncomment this and WebWorkerClientProxy::createWorker when the 14 // TODO(jam): uncomment this and WebWorkerClientProxy::createWorker when the
15 // renderer worker code moves to content. This code isn't used now since we 15 // renderer worker code moves to content. This code isn't used now since we
16 // don't support nested workers anyways. 16 // don't support nested workers anyways.
17 //#include "content/renderer/webworker_proxy.h" 17 //#include "content/renderer/webworker_proxy.h"
18 #include "content/worker/shared_worker_devtools_agent.h" 18 #include "content/worker/shared_worker_devtools_agent.h"
19 #include "content/worker/webworker_stub_base.h" 19 #include "content/worker/webworker_stub_base.h"
20 #include "content/worker/worker_thread.h" 20 #include "content/worker/worker_thread.h"
21 #include "content/worker/worker_webapplicationcachehost_impl.h" 21 #include "content/worker/worker_webapplicationcachehost_impl.h"
22 #include "ipc/ipc_logging.h" 22 #include "ipc/ipc_logging.h"
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h" 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebDocument.h"
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
206 206
207 // This shuts down the process cleanly from the perspective of the browser 207 // This shuts down the process cleanly from the perspective of the browser
208 // process, and avoids the crashed worker infobar from appearing to the new 208 // process, and avoids the crashed worker infobar from appearing to the new
209 // page. It's ok to post several of theese, because the first executed task 209 // page. It's ok to post several of theese, because the first executed task
210 // will exit the message loop and subsequent ones won't be executed. 210 // will exit the message loop and subsequent ones won't be executed.
211 MessageLoop::current()->PostDelayedTask(FROM_HERE, 211 MessageLoop::current()->PostDelayedTask(FROM_HERE,
212 kill_process_factory_.NewRunnableMethod( 212 kill_process_factory_.NewRunnableMethod(
213 &WebWorkerClientProxy::workerContextDestroyed), 213 &WebWorkerClientProxy::workerContextDestroyed),
214 kMaxTimeForRunawayWorkerMs); 214 kMaxTimeForRunawayWorkerMs);
215 } 215 }
OLDNEW
« no previous file with comments | « content/utility/utility_main.cc ('k') | content/worker/worker_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698