OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
tommi (sloooow) - chröme
2013/04/05 12:25:58
nit: I think the (c) should not be there but lint
Henrik Grunell
2013/04/08 09:15:39
The discussion seems not finished yet on chromium-
tommi (sloooow) - chröme
2013/04/08 16:35:55
Ah, let's not waste more time on it then.
| |
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 // WebRtcLoggingHandlerImpl handles WebRTC logging. There is one object per | |
22 // render thread. It communicates with WebRtcLoggingHandlerHost and receives | |
23 // logging messages from libjingle and writes them to a shared memory buffer. | |
24 class CONTENT_EXPORT WebRtcLoggingHandlerImpl | |
25 : public base::RefCounted<WebRtcLoggingHandlerImpl> { | |
26 public: | |
27 WebRtcLoggingHandlerImpl( | |
28 const scoped_refptr<WebRtcLoggingMessageFilter>& message_filter, | |
29 const scoped_refptr<base::MessageLoopProxy>& io_message_loop); | |
30 | |
31 void OnFilterRemoved(); | |
32 | |
33 void OpenLog(); | |
34 | |
35 void OnLogOpened(base::SharedMemoryHandle handle, uint32 length); | |
36 void OnOpenLogFailed(); | |
37 | |
38 private: | |
39 friend class base::RefCounted<WebRtcLoggingHandlerImpl>; | |
40 virtual ~WebRtcLoggingHandlerImpl(); | |
41 | |
42 scoped_refptr<WebRtcLoggingMessageFilter> message_filter_; | |
43 | |
44 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | |
45 | |
46 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerImpl); | |
47 }; | |
48 | |
49 } // namespace content | |
50 | |
51 #endif // CONTENT_RENDERER_WEBRTC_LOGGING_HANDLER_IMPL_H_ | |
OLD | NEW |