OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_BROWSER_TERMINATOR_H_ | 5 #ifndef COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_BROWSER_TERMINATOR_H_ |
6 #define COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_BROWSER_TERMINATOR_H_ | 6 #define COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_BROWSER_TERMINATOR_H_ |
7 | 7 |
8 #include <map> | 8 #include <map> |
9 | 9 |
10 #include "base/synchronization/lock.h" | 10 #include "base/synchronization/lock.h" |
(...skipping 21 matching lines...) Expand all Loading... |
32 // breakpad::CrashDumpObserver::Client implementation. | 32 // breakpad::CrashDumpObserver::Client implementation. |
33 void OnChildStart(int child_process_id, | 33 void OnChildStart(int child_process_id, |
34 content::FileDescriptorInfo* mappings) override; | 34 content::FileDescriptorInfo* mappings) override; |
35 void OnChildExit(int child_process_id, | 35 void OnChildExit(int child_process_id, |
36 base::ProcessHandle pid, | 36 base::ProcessHandle pid, |
37 content::ProcessType process_type, | 37 content::ProcessType process_type, |
38 base::TerminationStatus termination_status, | 38 base::TerminationStatus termination_status, |
39 base::android::ApplicationState app_state) override; | 39 base::android::ApplicationState app_state) override; |
40 | 40 |
41 private: | 41 private: |
42 static void ProcessTerminationStatus(std::unique_ptr<base::SyncSocket> pipe); | 42 static void ProcessTerminationStatus(int child_process_id, |
| 43 std::unique_ptr<base::SyncSocket> pipe); |
43 | 44 |
44 // This map should only be accessed with its lock aquired as it is accessed | 45 // This map should only be accessed with its lock aquired as it is accessed |
45 // from the PROCESS_LAUNCHER, FILE, and UI threads. | 46 // from the PROCESS_LAUNCHER, FILE, and UI threads. |
46 base::Lock child_process_id_to_pipe_lock_; | 47 base::Lock child_process_id_to_pipe_lock_; |
47 std::map<int, std::unique_ptr<base::SyncSocket>> child_process_id_to_pipe_; | 48 std::map<int, std::unique_ptr<base::SyncSocket>> child_process_id_to_pipe_; |
48 | 49 |
49 DISALLOW_COPY_AND_ASSIGN(AwBrowserTerminator); | 50 DISALLOW_COPY_AND_ASSIGN(AwBrowserTerminator); |
50 }; | 51 }; |
51 | 52 |
52 } // namespace breakpad | 53 } // namespace breakpad |
53 | 54 |
54 #endif // COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_BROWSER_TERMINATOR_H_ | 55 #endif // COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_BROWSER_TERMINATOR_H_ |
OLD | NEW |