Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2159)

Unified Diff: content/renderer/webrtc_logging_handler_impl.h

Issue 13119009: Adding WebRTC logging filter, handler and handler host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed render_thread_impl.* and render_process_host_impl.cc changes from this CL. Created 7 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/renderer/webrtc_logging_handler_impl.h
diff --git a/content/renderer/webrtc_logging_handler_impl.h b/content/renderer/webrtc_logging_handler_impl.h
new file mode 100644
index 0000000000000000000000000000000000000000..71bfa6e58606eb511d096461ea5cf30df629d62b
--- /dev/null
+++ b/content/renderer/webrtc_logging_handler_impl.h
@@ -0,0 +1,52 @@
+// Copyright (c) 2013 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_RENDERER_WEBRTC_LOGGING_HANDLER_IMPL_H_
+#define CONTENT_RENDERER_WEBRTC_LOGGING_HANDLER_IMPL_H_
+
+#include "base/memory/ref_counted.h"
+#include "base/shared_memory.h"
+#include "content/common/content_export.h"
+#include "ipc/ipc_channel_proxy.h"
+
+namespace base {
+class MessageLoopProxy;
+}
+
+namespace content {
+
+class WebRtcLoggingMessageFilter;
+
+// TODO(grunell): Write description.
+// TODO(grunell): Implement interface defined in libjingle.
+// TODO(grunell): Cannot use base::RefCounted; need virtual add & release since
+// it will be used by the peerconnection binary.
+class CONTENT_EXPORT WebRtcLoggingHandlerImpl
+ : public base::RefCounted<WebRtcLoggingHandlerImpl> {
+ public:
+ WebRtcLoggingHandlerImpl(
+ const scoped_refptr<WebRtcLoggingMessageFilter>& message_filter,
+ const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
+
+ virtual void OnFilterRemoved();
tommi (sloooow) - chröme 2013/03/28 11:00:10 are these virtual to support mocking? (something e
Henrik Grunell 2013/04/02 10:06:40 By mistake :-) Removed.
+
+ virtual void OpenLog();
+
+ virtual void OnLogOpened(base::SharedMemoryHandle handle, uint32 length);
+ virtual void OnOpenLogFailed();
+
+ private:
+ friend class base::RefCounted<WebRtcLoggingHandlerImpl>;
+ virtual ~WebRtcLoggingHandlerImpl();
+
+ scoped_refptr<WebRtcLoggingMessageFilter> message_filter_;
+
+ scoped_refptr<base::MessageLoopProxy> io_message_loop_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerImpl);
+};
+
+} // namespace content
+
+#endif // CONTENT_RENDERER_WEBRTC_LOGGING_HANDLER_IMPL_H_

Powered by Google App Engine
This is Rietveld 408576698