OLD | NEW |
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 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 5 #ifndef CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 6 #define CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
7 | 7 |
| 8 #include <stdint.h> |
| 9 |
8 #include <list> | 10 #include <list> |
9 | 11 |
10 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
11 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
12 #include "base/process/process.h" | 14 #include "base/process/process.h" |
13 #include "base/synchronization/waitable_event_watcher.h" | 15 #include "base/synchronization/waitable_event_watcher.h" |
| 16 #include "build/build_config.h" |
14 #include "content/browser/child_process_launcher.h" | 17 #include "content/browser/child_process_launcher.h" |
15 #include "content/browser/power_monitor_message_broadcaster.h" | 18 #include "content/browser/power_monitor_message_broadcaster.h" |
16 #include "content/public/browser/browser_child_process_host.h" | 19 #include "content/public/browser/browser_child_process_host.h" |
17 #include "content/public/browser/child_process_data.h" | 20 #include "content/public/browser/child_process_data.h" |
18 #include "content/public/common/child_process_host_delegate.h" | 21 #include "content/public/common/child_process_host_delegate.h" |
19 | 22 |
20 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
21 #include "base/win/object_watcher.h" | 24 #include "base/win/object_watcher.h" |
22 #endif | 25 #endif |
23 | 26 |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 int* exit_code) override; | 65 int* exit_code) override; |
63 void SetName(const base::string16& name) override; | 66 void SetName(const base::string16& name) override; |
64 void SetHandle(base::ProcessHandle handle) override; | 67 void SetHandle(base::ProcessHandle handle) override; |
65 ServiceRegistry* GetServiceRegistry() override; | 68 ServiceRegistry* GetServiceRegistry() override; |
66 | 69 |
67 // ChildProcessHostDelegate implementation: | 70 // ChildProcessHostDelegate implementation: |
68 bool CanShutdown() override; | 71 bool CanShutdown() override; |
69 void OnChildDisconnected() override; | 72 void OnChildDisconnected() override; |
70 const base::Process& GetProcess() const override; | 73 const base::Process& GetProcess() const override; |
71 bool OnMessageReceived(const IPC::Message& message) override; | 74 bool OnMessageReceived(const IPC::Message& message) override; |
72 void OnChannelConnected(int32 peer_pid) override; | 75 void OnChannelConnected(int32_t peer_pid) override; |
73 void OnChannelError() override; | 76 void OnChannelError() override; |
74 void OnBadMessageReceived(const IPC::Message& message) override; | 77 void OnBadMessageReceived(const IPC::Message& message) override; |
75 | 78 |
76 // Removes this host from the host list. Calls ChildProcessHost::ForceShutdown | 79 // Removes this host from the host list. Calls ChildProcessHost::ForceShutdown |
77 void ForceShutdown(); | 80 void ForceShutdown(); |
78 | 81 |
79 // Callers can reduce the BrowserChildProcess' priority. | 82 // Callers can reduce the BrowserChildProcess' priority. |
80 void SetBackgrounded(bool backgrounded); | 83 void SetBackgrounded(bool backgrounded); |
81 | 84 |
82 // Adds an IPC message filter. | 85 // Adds an IPC message filter. |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
126 // IPC channel. | 129 // IPC channel. |
127 base::win::ObjectWatcher early_exit_watcher_; | 130 base::win::ObjectWatcher early_exit_watcher_; |
128 #endif | 131 #endif |
129 | 132 |
130 bool is_channel_connected_; | 133 bool is_channel_connected_; |
131 }; | 134 }; |
132 | 135 |
133 } // namespace content | 136 } // namespace content |
134 | 137 |
135 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 138 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
OLD | NEW |