OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
jam
2013/05/29 17:56:19
do not add a media subdir under content/public/ren
Henrik Grunell
2013/05/29 18:25:51
Done.
| |
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 embedder (besides | |
15 // the ordinary logging stream) that will be used for diagnostic purposes. | |
16 class WebRtcLogMessageDelegate { | |
17 public: | |
18 // Tells the handler to initialize WebRTC logging. |app_session_id| is set | |
19 // by the Javascript application. |app_url| is the Javascript application URL. | |
20 virtual void InitLogging(const std::string& app_session_id, | |
21 const std::string& app_url) = 0; | |
22 | |
23 // Pass a diagnostic WebRTC log message. | |
24 virtual void LogMessage(const std::string& message) = 0; | |
25 | |
26 protected: | |
27 virtual ~WebRtcLogMessageDelegate() {} | |
28 }; | |
29 | |
30 } // namespace content | |
31 | |
32 #endif // CONTENT_PUBLIC_RENDERER_MEDIA_WEBRTC_LOG_MESSAGE_DELEGATE_H_ | |
OLD | NEW |