| 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 #ifndef CHROME_BROWSER_PROCESS_SINGLETON_H_ | 5 #ifndef CHROME_BROWSER_PROCESS_SINGLETON_H_ |
| 6 #define CHROME_BROWSER_PROCESS_SINGLETON_H_ | 6 #define CHROME_BROWSER_PROCESS_SINGLETON_H_ |
| 7 | 7 |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 // Blocks the dispatch of CopyData messages. | 45 // Blocks the dispatch of CopyData messages. |
| 46 void Lock() { | 46 void Lock() { |
| 47 locked_ = true; | 47 locked_ = true; |
| 48 } | 48 } |
| 49 | 49 |
| 50 // Allows the dispatch of CopyData messages. | 50 // Allows the dispatch of CopyData messages. |
| 51 void Unlock() { | 51 void Unlock() { |
| 52 locked_ = false; | 52 locked_ = false; |
| 53 } | 53 } |
| 54 | 54 |
| 55 // Looks for zombie renderer and plugin processes that could have survived. | |
| 56 void HuntForZombieChromeProcesses(); | |
| 57 | |
| 58 private: | 55 private: |
| 59 bool locked_; | 56 bool locked_; |
| 60 | 57 |
| 61 #if defined(OS_WIN) | 58 #if defined(OS_WIN) |
| 62 // This ugly behemoth handles startup commands sent from another process. | 59 // This ugly behemoth handles startup commands sent from another process. |
| 63 LRESULT OnCopyData(HWND hwnd, const COPYDATASTRUCT* cds); | 60 LRESULT OnCopyData(HWND hwnd, const COPYDATASTRUCT* cds); |
| 64 | 61 |
| 65 LRESULT CALLBACK WndProc(HWND hwnd, | 62 LRESULT CALLBACK WndProc(HWND hwnd, |
| 66 UINT message, | 63 UINT message, |
| 67 WPARAM wparam, | 64 WPARAM wparam, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 83 void SetupSocket(int* sock, struct sockaddr_un* addr); | 80 void SetupSocket(int* sock, struct sockaddr_un* addr); |
| 84 | 81 |
| 85 // Path in file system to the socket. | 82 // Path in file system to the socket. |
| 86 FilePath socket_path_; | 83 FilePath socket_path_; |
| 87 #endif | 84 #endif |
| 88 | 85 |
| 89 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); | 86 DISALLOW_COPY_AND_ASSIGN(ProcessSingleton); |
| 90 }; | 87 }; |
| 91 | 88 |
| 92 #endif // #ifndef CHROME_BROWSER_PROCESS_SINGLETON_H_ | 89 #endif // #ifndef CHROME_BROWSER_PROCESS_SINGLETON_H_ |
| OLD | NEW |