OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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 CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_ |
6 #define CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_ | 6 #define CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/memory/shared_memory.h" | 10 #include "base/memory/shared_memory.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 : public content::WebRtcLogMessageDelegate, | 26 : public content::WebRtcLogMessageDelegate, |
27 public base::NonThreadSafe { | 27 public base::NonThreadSafe { |
28 public: | 28 public: |
29 ChromeWebRtcLogMessageDelegate( | 29 ChromeWebRtcLogMessageDelegate( |
30 const scoped_refptr<base::MessageLoopProxy>& io_message_loop, | 30 const scoped_refptr<base::MessageLoopProxy>& io_message_loop, |
31 WebRtcLoggingMessageFilter* message_filter); | 31 WebRtcLoggingMessageFilter* message_filter); |
32 | 32 |
33 virtual ~ChromeWebRtcLogMessageDelegate(); | 33 virtual ~ChromeWebRtcLogMessageDelegate(); |
34 | 34 |
35 // content::WebRtcLogMessageDelegate implementation. | 35 // content::WebRtcLogMessageDelegate implementation. |
36 virtual void InitLogging(const std::string& app_session_id, | |
37 const std::string& app_url) OVERRIDE; | |
38 virtual void LogMessage(const std::string& message) OVERRIDE; | 36 virtual void LogMessage(const std::string& message) OVERRIDE; |
39 | 37 |
40 void OnFilterRemoved(); | 38 void OnFilterRemoved(); |
41 | 39 |
42 void OnLogOpened(base::SharedMemoryHandle handle, uint32 length); | 40 void OnStartLogging(base::SharedMemoryHandle handle, uint32 length); |
43 void OnOpenLogFailed(); | 41 void OnStopLogging(); |
44 | 42 |
45 private: | 43 private: |
46 scoped_refptr<base::MessageLoopProxy> io_message_loop_; | 44 scoped_refptr<base::MessageLoopProxy> io_message_loop_; |
47 scoped_ptr<base::SharedMemory> shared_memory_; | 45 scoped_ptr<base::SharedMemory> shared_memory_; |
48 scoped_ptr<PartialCircularBuffer> circular_buffer_; | 46 scoped_ptr<PartialCircularBuffer> circular_buffer_; |
49 | 47 |
50 WebRtcLoggingMessageFilter* message_filter_; | 48 WebRtcLoggingMessageFilter* message_filter_; |
51 bool log_initialized_; | |
52 | 49 |
53 DISALLOW_COPY_AND_ASSIGN(ChromeWebRtcLogMessageDelegate); | 50 DISALLOW_COPY_AND_ASSIGN(ChromeWebRtcLogMessageDelegate); |
54 }; | 51 }; |
55 | 52 |
56 #endif // CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_ | 53 #endif // CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_ |
OLD | NEW |