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

Unified Diff: content/browser/renderer_host/webrtc_logging_handler_host.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/browser/renderer_host/webrtc_logging_handler_host.h
diff --git a/content/browser/renderer_host/webrtc_logging_handler_host.h b/content/browser/renderer_host/webrtc_logging_handler_host.h
new file mode 100644
index 0000000000000000000000000000000000000000..1dfeb4d331e7967c4997fbee3b255c2b68681d17
--- /dev/null
+++ b/content/browser/renderer_host/webrtc_logging_handler_host.h
@@ -0,0 +1,41 @@
+// 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_BROWSER_RENDERER_HOST_WEBRTC_LOGGING_HANDLER_HOST_H_
+#define CONTENT_BROWSER_RENDERER_HOST_WEBRTC_LOGGING_HANDLER_HOST_H_
+
+#include "base/basictypes.h"
+#include "base/shared_memory.h"
+#include "content/public/browser/browser_message_filter.h"
+
+namespace content {
+
+// TODO(grunell): Write description.
+// TODO(grunell): Maybe name it something generic?
+class WebRtcLoggingHandlerHost : public BrowserMessageFilter {
+ public:
+ WebRtcLoggingHandlerHost();
+
+ // BrowserMessageFilter implementation.
tommi (sloooow) - chröme 2013/03/28 11:00:10 make this implementation private (see discussion o
Henrik Grunell 2013/04/02 10:06:40 Done.
+ virtual void OnChannelClosing() OVERRIDE;
+ virtual void OnDestruct() const OVERRIDE;
+ virtual bool OnMessageReceived(const IPC::Message& message,
+ bool* message_was_ok) OVERRIDE;
+
+ private:
+ friend class BrowserThread;
+ friend class base::DeleteHelper<WebRtcLoggingHandlerHost>;
+
+ virtual ~WebRtcLoggingHandlerHost();
+
+ void OnOpenLog();
+
+ base::SharedMemory shared_memory_;
+
+ DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerHost);
+};
+
+} // namespace content
+
+#endif // CONTENT_BROWSER_RENDERER_HOST_WEBRTC_LOGGING_HANDLER_HOST_H_

Powered by Google App Engine
This is Rietveld 408576698