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

Unified Diff: content/renderer/media/webrtc_logging_message_filter.h

Issue 15741003: Moving WebRTC logging related files from content to chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Code review. Created 7 years, 7 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/media/webrtc_logging_message_filter.h
diff --git a/content/renderer/media/webrtc_logging_message_filter.h b/content/renderer/media/webrtc_logging_message_filter.h
deleted file mode 100644
index aeb111912f143956e9f290a7f9efc711d57b140c..0000000000000000000000000000000000000000
--- a/content/renderer/media/webrtc_logging_message_filter.h
+++ /dev/null
@@ -1,68 +0,0 @@
-// 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_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_
-#define CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_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 WebRtcLoggingHandlerImpl;
-
-// Filter for WebRTC logging messages. Sits between WebRtcLoggingHandlerImpl
-// (renderer process) and WebRtcLoggingHandlerHost (browser process). Must be
-// called on the IO thread.
-class CONTENT_EXPORT WebRtcLoggingMessageFilter
- : public IPC::ChannelProxy::MessageFilter {
- public:
- explicit WebRtcLoggingMessageFilter(
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
-
- // We take owbership of |logging_handler|. See also comment below.
- virtual void InitLogging(WebRtcLoggingHandlerImpl* logging_handler,
- const std::string& app_session_id,
- const std::string& app_url);
-
- const scoped_refptr<base::MessageLoopProxy>& io_message_loop() {
- return io_message_loop_;
- }
-
- protected:
- virtual ~WebRtcLoggingMessageFilter();
-
- private:
- // IPC::ChannelProxy::MessageFilter implementation.
- virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
- virtual void OnFilterAdded(IPC::Channel* channel) OVERRIDE;
- virtual void OnFilterRemoved() OVERRIDE;
- virtual void OnChannelClosing() OVERRIDE;
-
- void OnLogOpened(base::SharedMemoryHandle handle, uint32 length);
- void OnOpenLogFailed();
-
- void Send(IPC::Message* message);
-
- // Owned by this class. The only other pointer to it is in libjingle's logging
- // file. That's a global pointer used on different threads, so we will leak
- // this object when we go away to ensure that it outlives any log messages
- // coming from libjingle.
- WebRtcLoggingHandlerImpl* logging_handler_;
-
- scoped_refptr<base::MessageLoopProxy> io_message_loop_;
-
- IPC::Channel* channel_;
-
- DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingMessageFilter);
-};
-
-} // namespace content
-
-#endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_

Powered by Google App Engine
This is Rietveld 408576698