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

Unified Diff: remoting/base/logger.h

Issue 7355011: Modify Chromoting logging to hook into base logging. (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/base/logger.h b/remoting/base/logger.h
deleted file mode 100644
index 73c41cfc55ee0e195fc739fa869b1ea0b58bf46a..0000000000000000000000000000000000000000
--- a/remoting/base/logger.h
+++ /dev/null
@@ -1,51 +0,0 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef REMOTING_BASE_LOGGER_H_
-#define REMOTING_BASE_LOGGER_H_
-
-#include "base/basictypes.h"
-#include "base/task.h"
-
-class MessageLoop;
-
-namespace remoting {
-
-class Logger {
- public:
- Logger();
- virtual ~Logger();
-
- void SetThread(MessageLoop* message_loop) {
- message_loop_ = message_loop;
- }
-
- void Log(logging::LogSeverity severity, const char* format, ...);
- void VLog(int verboselevel, const char* format, ...);
-
- void va_Log(logging::LogSeverity severity, const char* format, va_list ap);
- void va_VLog(int verboselevel, const char* format, va_list ap);
-
- protected:
- // Log to the UI after switching to the correct thread.
- void LogToUI_CorrectThread(const std::string& message);
-
- virtual void LogToUI(const std::string& message);
-
- static const char* const log_severity_names[];
-
- // We want all the log messages to be posted to the same thread so that:
- // (1) they are queued up in-order, and
- // (2) we don't try to update the log at the same time from multiple threads.
- MessageLoop* message_loop_;
-
- private:
- DISALLOW_COPY_AND_ASSIGN(Logger);
-};
-
-} // namespace remoting
-
-DISABLE_RUNNABLE_METHOD_REFCOUNT(remoting::Logger);
-
-#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