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

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

Issue 9838033: Upstream native crash handling changes for Android. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Removed a stale comment. Created 8 years, 8 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_LOGGING_CHROME_H__ 5 #ifndef CHROME_COMMON_LOGGING_CHROME_H__
6 #define CHROME_COMMON_LOGGING_CHROME_H__ 6 #define CHROME_COMMON_LOGGING_CHROME_H__
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 // NOTE: Since this reads the log file to determine the assertions, 58 // NOTE: Since this reads the log file to determine the assertions,
59 // this operation is O(n) over the length of the log. 59 // this operation is O(n) over the length of the log.
60 // NOTE: This can fail if the file is locked for writing. However, 60 // NOTE: This can fail if the file is locked for writing. However,
61 // this is unlikely as this function is most useful after 61 // this is unlikely as this function is most useful after
62 // the program writing the log has terminated. 62 // the program writing the log has terminated.
63 size_t GetFatalAssertions(AssertionList* assertions); 63 size_t GetFatalAssertions(AssertionList* assertions);
64 64
65 // Handler to silently dump the current process without crashing. 65 // Handler to silently dump the current process without crashing.
66 void DumpWithoutCrashing(); 66 void DumpWithoutCrashing();
67 67
68 #if defined(USE_LINUX_BREAKPAD) || defined(OS_MACOSX) 68 #if defined(USE_POSIX_BREAKPAD) || defined(OS_MACOSX)
69 // Sets a function that'll be invoked to dump the current process when 69 // Sets a function that'll be invoked to dump the current process when
70 // DumpWithoutCrashing() is called. 70 // DumpWithoutCrashing() is called.
71 void SetDumpWithoutCrashingFunction(void (*function)()); 71 void SetDumpWithoutCrashingFunction(void (*function)());
72 #endif 72 #endif
73 73
74 } // namespace logging 74 } // namespace logging
75 75
76 #endif // CHROME_COMMON_LOGGING_CHROME_H_ 76 #endif // CHROME_COMMON_LOGGING_CHROME_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698