| 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> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <list> | 10 #include <list> |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 friend class BrowserChildProcessHostIterator; | 98 friend class BrowserChildProcessHostIterator; |
| 99 friend class BrowserChildProcessObserver; | 99 friend class BrowserChildProcessObserver; |
| 100 | 100 |
| 101 static BrowserChildProcessList* GetIterator(); | 101 static BrowserChildProcessList* GetIterator(); |
| 102 | 102 |
| 103 static void AddObserver(BrowserChildProcessObserver* observer); | 103 static void AddObserver(BrowserChildProcessObserver* observer); |
| 104 static void RemoveObserver(BrowserChildProcessObserver* observer); | 104 static void RemoveObserver(BrowserChildProcessObserver* observer); |
| 105 | 105 |
| 106 // ChildProcessLauncher::Client implementation. | 106 // ChildProcessLauncher::Client implementation. |
| 107 void OnProcessLaunched() override; | 107 void OnProcessLaunched() override; |
| 108 void OnProcessLaunchFailed() override; | 108 void OnProcessLaunchFailed(int error_code) override; |
| 109 | 109 |
| 110 // Returns true if the process has successfully launched. Must only be called | 110 // Returns true if the process has successfully launched. Must only be called |
| 111 // on the IO thread. | 111 // on the IO thread. |
| 112 bool IsProcessLaunched() const; | 112 bool IsProcessLaunched() const; |
| 113 | 113 |
| 114 #if defined(OS_WIN) | 114 #if defined(OS_WIN) |
| 115 // ObjectWatcher::Delegate implementation. | 115 // ObjectWatcher::Delegate implementation. |
| 116 void OnObjectSignaled(HANDLE object) override; | 116 void OnObjectSignaled(HANDLE object) override; |
| 117 #endif | 117 #endif |
| 118 | 118 |
| (...skipping 12 matching lines...) Expand all Loading... |
| 131 base::win::ObjectWatcher early_exit_watcher_; | 131 base::win::ObjectWatcher early_exit_watcher_; |
| 132 #endif | 132 #endif |
| 133 | 133 |
| 134 bool is_channel_connected_; | 134 bool is_channel_connected_; |
| 135 bool notify_child_disconnected_; | 135 bool notify_child_disconnected_; |
| 136 }; | 136 }; |
| 137 | 137 |
| 138 } // namespace content | 138 } // namespace content |
| 139 | 139 |
| 140 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ | 140 #endif // CONTENT_BROWSER_BROWSER_CHILD_PROCESS_HOST_IMPL_H_ |
| OLD | NEW |