Chromium Code Reviews| 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 CONTENT_PUBLIC_RENDERER_MEDIA_WEBRTC_LOG_MESSAGE_DELEGATE_H_ | |
| 6 #define CONTENT_PUBLIC_RENDERER_MEDIA_WEBRTC_LOG_MESSAGE_DELEGATE_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 namespace content { | |
| 11 | |
| 12 // This interface is implemented by a handler in the embedder and used for | |
| 13 // initializing the logging and passing log messages to the handler. The | |
| 14 // purpose is to forward mainly libjingle log messages to Chrome (besides to the | |
|
jam
2013/05/29 16:25:48
nit: don't mention chrome in content
Henrik Grunell
2013/05/29 16:56:59
Changed to "embedder".
| |
| 15 // ordinary logging stream) that will be used for diagnostic purposes. | |
| 16 class WebRtcLogMessageDelegate { | |
| 17 public: | |
| 18 virtual void InitLogging(const std::string& app_session_id, | |
| 19 const std::string& app_url) = 0; | |
|
jam
2013/05/29 16:25:48
what are these two parameters?
nit: also document
Henrik Grunell
2013/05/29 16:56:59
The app session ID comes from the constraint value
| |
| 20 virtual void LogMessage(const std::string& message) = 0; | |
| 21 | |
| 22 protected: | |
| 23 virtual ~WebRtcLogMessageDelegate() {} | |
| 24 }; | |
| 25 | |
| 26 } // namespace content | |
| 27 | |
| 28 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_WEBRTC_LOG_MESSAGE_DELEGATE_H_ | |
| OLD | NEW |