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

Side by Side Diff: chrome/browser/crash_handler_host_linux.cc

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/cookies_tree_model_unittest.cc ('k') | chrome/browser/crash_upload_list.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 (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #include "chrome/browser/crash_handler_host_linux.h" 5 #include "chrome/browser/crash_handler_host_linux.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <sys/socket.h> 9 #include <sys/socket.h>
10 #include <sys/syscall.h> 10 #include <sys/syscall.h>
(...skipping 13 matching lines...) Expand all
24 #include "base/task.h" 24 #include "base/task.h"
25 #include "base/threading/thread.h" 25 #include "base/threading/thread.h"
26 #include "breakpad/src/client/linux/handler/exception_handler.h" 26 #include "breakpad/src/client/linux/handler/exception_handler.h"
27 #include "breakpad/src/client/linux/minidump_writer/linux_dumper.h" 27 #include "breakpad/src/client/linux/minidump_writer/linux_dumper.h"
28 #include "breakpad/src/client/linux/minidump_writer/minidump_writer.h" 28 #include "breakpad/src/client/linux/minidump_writer/minidump_writer.h"
29 #include "chrome/app/breakpad_linux.h" 29 #include "chrome/app/breakpad_linux.h"
30 #include "chrome/common/chrome_paths.h" 30 #include "chrome/common/chrome_paths.h"
31 #include "chrome/common/env_vars.h" 31 #include "chrome/common/env_vars.h"
32 #include "content/public/browser/browser_thread.h" 32 #include "content/public/browser/browser_thread.h"
33 33
34 using content::BrowserThread;
34 using google_breakpad::ExceptionHandler; 35 using google_breakpad::ExceptionHandler;
35 36
36 namespace { 37 namespace {
37 38
38 // The length of the control message: 39 // The length of the control message:
39 const unsigned kControlMsgSize = 40 const unsigned kControlMsgSize =
40 CMSG_SPACE(2*sizeof(int)) + CMSG_SPACE(sizeof(struct ucred)); 41 CMSG_SPACE(2*sizeof(int)) + CMSG_SPACE(sizeof(struct ucred));
41 // The length of the regular payload: 42 // The length of the regular payload:
42 const unsigned kCrashContextSize = sizeof(ExceptionHandler::CrashContext); 43 const unsigned kCrashContextSize = sizeof(ExceptionHandler::CrashContext);
43 44
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 } 467 }
467 468
468 void RendererCrashHandlerHostLinux::SetProcessType() { 469 void RendererCrashHandlerHostLinux::SetProcessType() {
469 process_type_ = "renderer"; 470 process_type_ = "renderer";
470 } 471 }
471 472
472 // static 473 // static
473 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() { 474 RendererCrashHandlerHostLinux* RendererCrashHandlerHostLinux::GetInstance() {
474 return Singleton<RendererCrashHandlerHostLinux>::get(); 475 return Singleton<RendererCrashHandlerHostLinux>::get();
475 } 476 }
OLDNEW
« no previous file with comments | « chrome/browser/cookies_tree_model_unittest.cc ('k') | chrome/browser/crash_upload_list.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698