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/browser/worker_host/worker_process_host.h" | 5 #include "chrome/browser/worker_host/worker_process_host.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/debug_util.h" | 8 #include "base/debug_util.h" |
9 #include "base/logging.h" | |
10 #include "base/path_service.h" | 9 #include "base/path_service.h" |
11 #include "base/process_util.h" | 10 #include "base/process_util.h" |
12 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/renderer_host/resource_message_filter.h" | 12 #include "chrome/browser/renderer_host/resource_message_filter.h" |
14 #include "chrome/browser/worker_host/worker_service.h" | 13 #include "chrome/browser/worker_host/worker_service.h" |
15 #include "chrome/common/chrome_switches.h" | 14 #include "chrome/common/chrome_switches.h" |
16 #include "chrome/common/debug_flags.h" | 15 #include "chrome/common/debug_flags.h" |
17 #include "chrome/common/process_watcher.h" | 16 #include "chrome/common/process_watcher.h" |
18 #include "chrome/common/render_messages.h" | 17 #include "chrome/common/render_messages.h" |
19 #include "chrome/common/worker_messages.h" | 18 #include "chrome/common/worker_messages.h" |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
90 | 89 |
91 void WorkerProcessHost::RendererShutdown(ResourceMessageFilter* filter) { | 90 void WorkerProcessHost::RendererShutdown(ResourceMessageFilter* filter) { |
92 for (Instances::iterator i = instances_.begin(); i != instances_.end();) { | 91 for (Instances::iterator i = instances_.begin(); i != instances_.end();) { |
93 if (i->filter == filter) { | 92 if (i->filter == filter) { |
94 i = instances_.erase(i); | 93 i = instances_.erase(i); |
95 } else { | 94 } else { |
96 ++i; | 95 ++i; |
97 } | 96 } |
98 } | 97 } |
99 } | 98 } |
OLD | NEW |