Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(408)

Side by Side Diff: components/crash/content/browser/crash_handler_host_linux.h

Issue 2318123002: Remove calls to IsRunningSequenceOnCurrentThread() from crash_handler_host_linux.cc (Closed)
Patch Set: fix build error Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | components/crash/content/browser/crash_handler_host_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | components/crash/content/browser/crash_handler_host_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698