Index: chrome/renderer/media/webrtc_logging_handler_impl.h |
diff --git a/content/renderer/media/webrtc_logging_handler_impl.h b/chrome/renderer/media/webrtc_logging_handler_impl.h |
similarity index 59% |
rename from content/renderer/media/webrtc_logging_handler_impl.h |
rename to chrome/renderer/media/webrtc_logging_handler_impl.h |
index ff9b4f30bd0557c4decd280898f7aa8d6da1f0c7..679c427a1accc50403286b7c3b8969a2c2455cca 100644 |
--- a/content/renderer/media/webrtc_logging_handler_impl.h |
+++ b/chrome/renderer/media/webrtc_logging_handler_impl.h |
@@ -2,22 +2,20 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#ifndef CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_ |
-#define CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_ |
+#ifndef CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_ |
+#define CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_ |
#include <string> |
#include "base/shared_memory.h" |
-#include "base/threading/non_thread_safe.h" |
-#include "content/common/content_export.h" |
+#include "content/public/renderer/webrtc_log_message_delegate.h" |
#include "ipc/ipc_channel_proxy.h" |
-#include "third_party/libjingle/overrides/logging/log_message_delegate.h" |
namespace base { |
class MessageLoopProxy; |
} |
-namespace content { |
+namespace chrome { |
class PartialCircularBuffer; |
class WebRtcLoggingMessageFilter; |
@@ -26,16 +24,19 @@ class WebRtcLoggingMessageFilter; |
// render process, owned by WebRtcLoggingMessageFilter. It communicates with |
// WebRtcLoggingHandlerHost and receives logging messages from libjingle and |
// writes them to a shared memory buffer. |
-class CONTENT_EXPORT WebRtcLoggingHandlerImpl |
- : public NON_EXPORTED_BASE(talk_base::LogMessageDelegate), |
- public NON_EXPORTED_BASE(base::NonThreadSafe) { |
+class WebRtcLoggingHandlerImpl |
jam
2013/05/30 15:01:17
nit: chrome implementations of content interface F
Henrik Grunell
2013/05/31 19:26:38
So, wouldn't this class be called ChromeWebRtcLogM
jam
2013/05/31 19:38:10
oops, sorry yes that would be ChromeWebRtcLogMessa
|
+ : public content::WebRtcLogMessageDelegate, |
+ public base::NonThreadSafe { |
public: |
WebRtcLoggingHandlerImpl( |
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop); |
+ const scoped_refptr<base::MessageLoopProxy>& io_message_loop, |
+ WebRtcLoggingMessageFilter* message_filter); |
virtual ~WebRtcLoggingHandlerImpl(); |
- // talk_base::LogMessageDelegate implementation. |
+ // content::WebRtcLogMessageDelegate implementation. |
+ virtual void InitLogging(const std::string& app_session_id, |
+ const std::string& app_url) OVERRIDE; |
virtual void LogMessage(const std::string& message) OVERRIDE; |
void OnFilterRemoved(); |
@@ -46,11 +47,14 @@ class CONTENT_EXPORT WebRtcLoggingHandlerImpl |
private: |
scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
scoped_ptr<base::SharedMemory> shared_memory_; |
- scoped_ptr<content::PartialCircularBuffer> circular_buffer_; |
+ scoped_ptr<chrome::PartialCircularBuffer> circular_buffer_; |
+ |
+ WebRtcLoggingMessageFilter* message_filter_; |
+ bool log_initialized_; |
DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerImpl); |
}; |
-} // namespace content |
+} // namespace chrome |
-#endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_ |
+#endif // CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_ |