| OLD | NEW |
| (Empty) |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef THIRD_PARTY_LIBJINGLE_OVERRIDES_LOGGING_LOG_MESSAGE_DELEGATE_H_ | |
| 6 #define THIRD_PARTY_LIBJINGLE_OVERRIDES_LOGGING_LOG_MESSAGE_DELEGATE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace talk_base { | |
| 11 | |
| 12 // This interface is implemented by a handler in Chromium and used by the | |
| 13 // overridden logging.h/cc in libjingle. The purpose is to forward libjingle | |
| 14 // logging messages to Chromium (besides to the ordinary logging stream) that | |
| 15 // will be used for diagnostic purposes. LogMessage can be called on any thread | |
| 16 // used by libjingle. | |
| 17 class LogMessageDelegate { | |
| 18 public: | |
| 19 virtual void LogMessage(const std::string& message) = 0; | |
| 20 | |
| 21 protected: | |
| 22 virtual ~LogMessageDelegate() {} | |
| 23 }; | |
| 24 | |
| 25 } // namespace talk_base | |
| 26 | |
| 27 #endif // THIRD_PARTY_LIBJINGLE_OVERRIDES_LOGGING_LOG_MESSAGE_DELEGATE_H_ | |
| OLD | NEW |