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

Side by Side Diff: content/renderer/media/webrtc_logging_handler_impl.h

Issue 14329020: Implementing uploading of a WebRTC diagnostic log. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed two files 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_
6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_ 6 #define CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/shared_memory.h" 10 #include "base/shared_memory.h"
11 #include "base/threading/non_thread_safe.h" 11 #include "base/threading/non_thread_safe.h"
12 #include "content/common/content_export.h" 12 #include "content/common/content_export.h"
13 #include "ipc/ipc_channel_proxy.h" 13 #include "ipc/ipc_channel_proxy.h"
14 #include "third_party/libjingle/overrides/logging/log_message_delegate.h" 14 #include "third_party/libjingle/overrides/logging/log_message_delegate.h"
15 15
16 namespace base { 16 namespace base {
17 class MessageLoopProxy; 17 class MessageLoopProxy;
18 class PartialCircularBuffer;
18 } 19 }
19 20
20 namespace content { 21 namespace content {
21 22
22 class PartialCircularBuffer;
23 class WebRtcLoggingMessageFilter; 23 class WebRtcLoggingMessageFilter;
24 24
25 // WebRtcLoggingHandlerImpl handles WebRTC logging. There is one object per 25 // WebRtcLoggingHandlerImpl handles WebRTC logging. There is one object per
26 // render process, owned by WebRtcLoggingMessageFilter. It communicates with 26 // render process, owned by WebRtcLoggingMessageFilter. It communicates with
27 // WebRtcLoggingHandlerHost and receives logging messages from libjingle and 27 // WebRtcLoggingHandlerHost and receives logging messages from libjingle and
28 // writes them to a shared memory buffer. 28 // writes them to a shared memory buffer.
29 class CONTENT_EXPORT WebRtcLoggingHandlerImpl 29 class CONTENT_EXPORT WebRtcLoggingHandlerImpl
30 : public NON_EXPORTED_BASE(talk_base::LogMessageDelegate), 30 : public NON_EXPORTED_BASE(talk_base::LogMessageDelegate),
31 public NON_EXPORTED_BASE(base::NonThreadSafe) { 31 public NON_EXPORTED_BASE(base::NonThreadSafe) {
32 public: 32 public:
33 WebRtcLoggingHandlerImpl( 33 WebRtcLoggingHandlerImpl(
34 const scoped_refptr<base::MessageLoopProxy>& io_message_loop); 34 const scoped_refptr<base::MessageLoopProxy>& io_message_loop);
35 35
36 virtual ~WebRtcLoggingHandlerImpl(); 36 virtual ~WebRtcLoggingHandlerImpl();
37 37
38 // talk_base::LogMessageDelegate implementation. 38 // talk_base::LogMessageDelegate implementation.
39 virtual void LogMessage(const std::string& message) OVERRIDE; 39 virtual void LogMessage(const std::string& message) OVERRIDE;
40 40
41 void OnFilterRemoved(); 41 void OnFilterRemoved();
42 42
43 void OnLogOpened(base::SharedMemoryHandle handle, uint32 length); 43 void OnLogOpened(base::SharedMemoryHandle handle, uint32 length);
44 void OnOpenLogFailed(); 44 void OnOpenLogFailed();
45 45
46 private: 46 private:
47 scoped_refptr<base::MessageLoopProxy> io_message_loop_; 47 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
48 scoped_ptr<base::SharedMemory> shared_memory_; 48 scoped_ptr<base::SharedMemory> shared_memory_;
49 scoped_ptr<content::PartialCircularBuffer> circular_buffer_; 49 scoped_ptr<base::PartialCircularBuffer> circular_buffer_;
50 50
51 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerImpl); 51 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerImpl);
52 }; 52 };
53 53
54 } // namespace content 54 } // namespace content
55 55
56 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_ 56 #endif // CONTENT_RENDERER_MEDIA_WEBRTC_LOGGING_HANDLER_IMPL_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698