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

Side by Side Diff: chrome/common/child_process_host.cc

Issue 155905: Separates ipc code from common (http://crbug.com/16829) (Closed)
Patch Set: Fixes reference to 'common_message_traits' it's actually 'common_param_traits' Created 11 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
« no previous file with comments | « chrome/common/child_process_host.h ('k') | chrome/common/child_thread.h » ('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) 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
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 }
OLDNEW
« no previous file with comments | « chrome/common/child_process_host.h ('k') | chrome/common/child_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698