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/common/child_process_host.h" | 5 #include "chrome/common/child_process_host.h" |
6 | 6 |
7 #include "base/compiler_specific.h" | 7 #include "base/compiler_specific.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop.h" |
10 #include "base/process_util.h" | 10 #include "base/process_util.h" |
11 #include "base/singleton.h" | 11 #include "base/singleton.h" |
12 #include "base/waitable_event.h" | 12 #include "base/waitable_event.h" |
13 #include "chrome/browser/chrome_thread.h" | 13 #include "chrome/browser/chrome_thread.h" |
14 #include "chrome/common/ipc_logging.h" | |
15 #include "chrome/common/notification_service.h" | 14 #include "chrome/common/notification_service.h" |
16 #include "chrome/common/notification_type.h" | 15 #include "chrome/common/notification_type.h" |
17 #include "chrome/common/plugin_messages.h" | 16 #include "chrome/common/plugin_messages.h" |
18 #include "chrome/common/process_watcher.h" | 17 #include "chrome/common/process_watcher.h" |
19 #include "chrome/common/result_codes.h" | 18 #include "chrome/common/result_codes.h" |
| 19 #include "ipc/ipc_logging.h" |
20 | 20 |
21 | 21 |
22 namespace { | 22 namespace { |
23 typedef std::list<ChildProcessHost*> ChildProcessList; | 23 typedef std::list<ChildProcessHost*> ChildProcessList; |
24 | 24 |
25 // The NotificationTask is used to notify about plugin process connection/ | 25 // The NotificationTask is used to notify about plugin process connection/ |
26 // disconnection. It is needed because the notifications in the | 26 // disconnection. It is needed because the notifications in the |
27 // NotificationService must happen in the main thread. | 27 // NotificationService must happen in the main thread. |
28 class ChildNotificationTask : public Task { | 28 class ChildNotificationTask : public Task { |
29 public: | 29 public: |
(...skipping 175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 | 205 |
206 return *iterator_; | 206 return *iterator_; |
207 } while (true); | 207 } while (true); |
208 | 208 |
209 return NULL; | 209 return NULL; |
210 } | 210 } |
211 | 211 |
212 bool ChildProcessHost::Iterator::Done() { | 212 bool ChildProcessHost::Iterator::Done() { |
213 return iterator_ == Singleton<ChildProcessList>::get()->end(); | 213 return iterator_ == Singleton<ChildProcessList>::get()->end(); |
214 } | 214 } |
OLD | NEW |