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

Side by Side Diff: chrome/common/child_process_logging.h

Issue 9803002: [windows] Make calls to exit(), _exit(), abort(), and ExitProcess() from the renderer process resul… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ 5 #ifndef CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
6 #define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ 6 #define CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
7 #pragma once 7 #pragma once
8 8
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // mean different things depending on the process type: 72 // mean different things depending on the process type:
73 // - browser: all enabled extensions 73 // - browser: all enabled extensions
74 // - renderer: the unique set of extension ids from all content scripts 74 // - renderer: the unique set of extension ids from all content scripts
75 // - extension: the id of each extension running in this process (there can be 75 // - extension: the id of each extension running in this process (there can be
76 // multiple because of process collapsing). 76 // multiple because of process collapsing).
77 void SetActiveExtensions(const std::set<std::string>& extension_ids); 77 void SetActiveExtensions(const std::set<std::string>& extension_ids);
78 78
79 // Sets a number of views/tabs opened in this process. 79 // Sets a number of views/tabs opened in this process.
80 void SetNumberOfViews(int number_of_views); 80 void SetNumberOfViews(int number_of_views);
81 81
82 // Sets whether the process should be forcibly crashed when it is exitted. This
rvargas (doing something else) 2012/03/21 03:13:45 nit: 'when it exits' ?
83 // is used to intercept unexpected process terminations from calls to exit(),
84 // abort(), _exit(), ExitProcess(), etc.
85 //
86 // To enable this, start by calling with true during startup. Unset it before
87 // entering normal shutdown codepaths (like returning from main()). Shutdowns
88 // initiated along any other codepath will result in a crash.
89 void SetCrashOnExit(bool crash_on_exit);
90
82 // Sets the data on the gpu to send along with crash reports. 91 // Sets the data on the gpu to send along with crash reports.
83 void SetGpuInfo(const content::GPUInfo& gpu_info); 92 void SetGpuInfo(const content::GPUInfo& gpu_info);
84 93
85 // Sets the command line arguments to send along with crash reports to the 94 // Sets the command line arguments to send along with crash reports to the
86 // values in |command_line|. 95 // values in |command_line|.
87 void SetCommandLine(const CommandLine* command_line); 96 void SetCommandLine(const CommandLine* command_line);
88 97
89 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_MACOSX) 98 #if defined(OS_LINUX) || defined(OS_OPENBSD) || defined(OS_MACOSX)
90 // Sets the product channel data to send along with crash reports to |channel|. 99 // Sets the product channel data to send along with crash reports to |channel|.
91 void SetChannel(const std::string& channel); 100 void SetChannel(const std::string& channel);
(...skipping 27 matching lines...) Expand all
119 128
120 extern const int kMaxNumCrashURLChunks; 129 extern const int kMaxNumCrashURLChunks;
121 extern const int kMaxNumURLChunkValueLength; 130 extern const int kMaxNumURLChunkValueLength;
122 extern const char *kUrlChunkFormatStr; 131 extern const char *kUrlChunkFormatStr;
123 132
124 } // namespace child_process_logging 133 } // namespace child_process_logging
125 134
126 #endif // defined(OS_MACOSX) 135 #endif // defined(OS_MACOSX)
127 136
128 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_ 137 #endif // CHROME_COMMON_CHILD_PROCESS_LOGGING_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698