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

Side by Side 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, 8 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef CONTENT_RENDERER_WEBRTC_LOGGING_HANDLER_IMPL_H_
6 #define CONTENT_RENDERER_WEBRTC_LOGGING_HANDLER_IMPL_H_
7
8 #include "base/memory/ref_counted.h"
9 #include "base/shared_memory.h"
10 #include "content/common/content_export.h"
11 #include "ipc/ipc_channel_proxy.h"
12
13 namespace base {
14 class MessageLoopProxy;
15 }
16
17 namespace content {
18
19 class WebRtcLoggingMessageFilter;
20
21 // TODO(grunell): Write description.
22 // TODO(grunell): Implement interface defined in libjingle.
23 // TODO(grunell): Cannot use base::RefCounted; need virtual add & release since
24 // it will be used by the peerconnection binary.
25 class CONTENT_EXPORT WebRtcLoggingHandlerImpl
26 : public base::RefCounted<WebRtcLoggingHandlerImpl> {
27 public:
28 WebRtcLoggingHandlerImpl(
29 const scoped_refptr<WebRtcLoggingMessageFilter>& message_filter,
30 const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
31
32 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.
33
34 virtual void OpenLog();
35
36 virtual void OnLogOpened(base::SharedMemoryHandle handle, uint32 length);
37 virtual void OnOpenLogFailed();
38
39 private:
40 friend class base::RefCounted<WebRtcLoggingHandlerImpl>;
41 virtual ~WebRtcLoggingHandlerImpl();
42
43 scoped_refptr<WebRtcLoggingMessageFilter> message_filter_;
44
45 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
46
47 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerImpl);
48 };
49
50 } // namespace content
51
52 #endif // CONTENT_RENDERER_WEBRTC_LOGGING_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698