| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_HANDLER_HOST_LINUX_H_ | 5 #ifndef COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ |
| 6 #define COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ | 6 #define COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ |
| 7 | 7 |
| 8 #include <sys/types.h> | 8 #include <sys/types.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| 11 #include <utility> | 11 #include <utility> |
| 12 | 12 |
| 13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/macros.h" | 15 #include "base/macros.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "base/sequence_checker.h" |
| 17 #include "base/threading/sequenced_worker_pool.h" | 18 #include "base/threading/sequenced_worker_pool.h" |
| 18 #include "components/crash/content/app/breakpad_linux_impl.h" | 19 #include "components/crash/content/app/breakpad_linux_impl.h" |
| 19 | 20 |
| 20 namespace base { | 21 namespace base { |
| 21 class Thread; | 22 class Thread; |
| 22 } | 23 } |
| 23 | 24 |
| 24 namespace breakpad { | 25 namespace breakpad { |
| 25 | 26 |
| 26 struct BreakpadInfo; | 27 struct BreakpadInfo; |
| (...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 int browser_socket_; | 96 int browser_socket_; |
| 96 | 97 |
| 97 base::MessageLoopForIO::FileDescriptorWatcher file_descriptor_watcher_; | 98 base::MessageLoopForIO::FileDescriptorWatcher file_descriptor_watcher_; |
| 98 std::unique_ptr<base::Thread> uploader_thread_; | 99 std::unique_ptr<base::Thread> uploader_thread_; |
| 99 bool shutting_down_; | 100 bool shutting_down_; |
| 100 | 101 |
| 101 // Unique sequence token so that writing crash dump won't be blocked | 102 // Unique sequence token so that writing crash dump won't be blocked |
| 102 // by other tasks. | 103 // by other tasks. |
| 103 base::SequencedWorkerPool::SequenceToken worker_pool_token_; | 104 base::SequencedWorkerPool::SequenceToken worker_pool_token_; |
| 104 | 105 |
| 106 // Used to verify that calls to WriteDumpFile() are sequenced. |
| 107 base::SequenceChecker write_dump_file_sequence_checker_; |
| 108 |
| 105 DISALLOW_COPY_AND_ASSIGN(CrashHandlerHostLinux); | 109 DISALLOW_COPY_AND_ASSIGN(CrashHandlerHostLinux); |
| 106 }; | 110 }; |
| 107 | 111 |
| 108 } // namespace breakpad | 112 } // namespace breakpad |
| 109 | 113 |
| 110 #endif // COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ | 114 #endif // COMPONENTS_CRASH_CONTENT_BROWSER_CRASH_HANDLER_HOST_LINUX_H_ |
| OLD | NEW |