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

Unified Diff: remoting/base/logger.h

Issue 7262015: Conenct Chromoting plugin debug log to JS UI. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | remoting/base/logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/logger.h
diff --git a/remoting/client/client_logger.h b/remoting/base/logger.h
similarity index 71%
rename from remoting/client/client_logger.h
rename to remoting/base/logger.h
index f481c51eb6825886e04ff0f9901fb1d9cd890c42..1022e4f673c71087f53757df12e249835810b0c7 100644
--- a/remoting/client/client_logger.h
+++ b/remoting/base/logger.h
@@ -2,18 +2,18 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef REMOTING_CLIENT_CLIENT_LOGGER_H_
-#define REMOTING_CLIENT_CLIENT_LOGGER_H_
+#ifndef REMOTING_BASE_LOGGER_H_
+#define REMOTING_BASE_LOGGER_H_
#include "base/basictypes.h"
#include "base/logging.h"
namespace remoting {
-class ClientLogger {
+class Logger {
public:
- ClientLogger();
- virtual ~ClientLogger();
+ Logger();
+ virtual ~Logger();
void Log(logging::LogSeverity severity, const char* format, ...);
void VLog(int verboselevel, const char* format, ...);
@@ -22,10 +22,13 @@ class ClientLogger {
const char* format, va_list ap);
virtual void va_VLog(int verboselevel, const char* format, va_list ap);
+ protected:
+ static const char* const log_severity_names[];
+
private:
- DISALLOW_COPY_AND_ASSIGN(ClientLogger);
+ DISALLOW_COPY_AND_ASSIGN(Logger);
};
} // namespace remoting
-#endif // REMOTING_CLIENT_CLIENT_LOGGER_H_
+#endif // REMOTING_BASE_LOGGER_H_
« no previous file with comments | « no previous file | remoting/base/logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698