Index: content/public/renderer/media/webrtc_log_message_delegate.h |
diff --git a/content/public/renderer/media/webrtc_log_message_delegate.h b/content/public/renderer/media/webrtc_log_message_delegate.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..6b4a7952f8f82af02e6c715a763a22a4a66e3b1b |
--- /dev/null |
+++ b/content/public/renderer/media/webrtc_log_message_delegate.h |
@@ -0,0 +1,32 @@ |
+// 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.
|
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CONTENT_PUBLIC_RENDERER_MEDIA_WEBRTC_LOG_MESSAGE_DELEGATE_H_ |
+#define CONTENT_PUBLIC_RENDERER_MEDIA_WEBRTC_LOG_MESSAGE_DELEGATE_H_ |
+ |
+#include <string> |
+ |
+namespace content { |
+ |
+// This interface is implemented by a handler in the embedder and used for |
+// initializing the logging and passing log messages to the handler. The |
+// purpose is to forward mainly libjingle log messages to embedder (besides |
+// the ordinary logging stream) that will be used for diagnostic purposes. |
+class WebRtcLogMessageDelegate { |
+ public: |
+ // Tells the handler to initialize WebRTC logging. |app_session_id| is set |
+ // by the Javascript application. |app_url| is the Javascript application URL. |
+ virtual void InitLogging(const std::string& app_session_id, |
+ const std::string& app_url) = 0; |
+ |
+ // Pass a diagnostic WebRTC log message. |
+ virtual void LogMessage(const std::string& message) = 0; |
+ |
+ protected: |
+ virtual ~WebRtcLogMessageDelegate() {} |
+}; |
+ |
+} // namespace content |
+ |
+#endif // CONTENT_PUBLIC_RENDERER_MEDIA_WEBRTC_LOG_MESSAGE_DELEGATE_H_ |