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

Side by Side Diff: system_logging.h

Issue 3040013: Start invoking core2md to implement full system crash reporting (Closed) Base URL: ssh://git@chromiumos-git//crash-reporter.git
Patch Set: Replace all STREQ macros Created 10 years, 5 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 | « crash_sender ('k') | system_logging_mock.h » ('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) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 CRASH_SYSTEM_LOGGING_H_ 5 #ifndef CRASH_REPORTER_SYSTEM_LOGGING_H_
6 #define CRASH_SYSTEM_LOGGING_H_ 6 #define CRASH_REPORTER_SYSTEM_LOGGING_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 class SystemLogging { 10 class SystemLogging {
11 public: 11 public:
12 virtual void Initialize(const char *ident) = 0; 12 virtual void Initialize(const char *ident) = 0;
13 virtual void LogInfo(const char *format, ...) = 0; 13 virtual void LogInfo(const char *format, ...) = 0;
14 virtual void LogWarning(const char *format, ...) = 0; 14 virtual void LogWarning(const char *format, ...) = 0;
15 virtual void LogError(const char *format, ...) = 0; 15 virtual void LogError(const char *format, ...) = 0;
16 }; 16 };
17 17
18 class SystemLoggingImpl : public SystemLogging { 18 class SystemLoggingImpl : public SystemLogging {
19 public: 19 public:
20 SystemLoggingImpl(); 20 SystemLoggingImpl();
21 virtual ~SystemLoggingImpl(); 21 virtual ~SystemLoggingImpl();
22 virtual void Initialize(const char *ident); 22 virtual void Initialize(const char *ident);
23 virtual void LogInfo(const char *format, ...); 23 virtual void LogInfo(const char *format, ...);
24 virtual void LogWarning(const char *format, ...); 24 virtual void LogWarning(const char *format, ...);
25 virtual void LogError(const char *format, ...); 25 virtual void LogError(const char *format, ...);
26 private: 26 private:
27 static std::string identity_; 27 static std::string identity_;
28 }; 28 };
29 29
30 #endif // CRASH_SYSTEM_LOGGING_H_ 30 #endif // CRASH_REPORTER_SYSTEM_LOGGING_H_
OLDNEW
« no previous file with comments | « crash_sender ('k') | system_logging_mock.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698