| 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 ANDROID_WEBVIEW_BROWSER_AW_BROWSER_TERMINATOR_H_ |
| 6 #define COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_BROWSER_TERMINATOR_H_ | 6 #define ANDROID_WEBVIEW_BROWSER_AW_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" |
| 11 #include "components/crash/content/browser/crash_dump_observer_android.h" | 11 #include "components/crash/content/browser/crash_dump_observer_android.h" |
| 12 | 12 |
| 13 namespace base { | 13 namespace base { |
| 14 class SyncSocket; | 14 class SyncSocket; |
| 15 } | 15 } |
| 16 | 16 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 44 std::unique_ptr<base::SyncSocket> pipe); | 44 std::unique_ptr<base::SyncSocket> pipe); |
| 45 | 45 |
| 46 // This map should only be accessed with its lock aquired as it is accessed | 46 // This map should only be accessed with its lock aquired as it is accessed |
| 47 // from the PROCESS_LAUNCHER, FILE, and UI threads. | 47 // from the PROCESS_LAUNCHER, FILE, and UI threads. |
| 48 base::Lock child_process_id_to_pipe_lock_; | 48 base::Lock child_process_id_to_pipe_lock_; |
| 49 std::map<int, std::unique_ptr<base::SyncSocket>> child_process_id_to_pipe_; | 49 std::map<int, std::unique_ptr<base::SyncSocket>> child_process_id_to_pipe_; |
| 50 | 50 |
| 51 DISALLOW_COPY_AND_ASSIGN(AwBrowserTerminator); | 51 DISALLOW_COPY_AND_ASSIGN(AwBrowserTerminator); |
| 52 }; | 52 }; |
| 53 | 53 |
| 54 } // namespace breakpad | 54 } // namespace android_webview |
| 55 | 55 |
| 56 #endif // COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_DUMP_BROWSER_TERMINATOR_H_ | 56 #endif // ANDROID_WEBVIEW_BROWSER_AW_BROWSER_TERMINATOR_H_ |
| OLD | NEW |