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

Side by Side Diff: chrome/renderer/media/chrome_webrtc_log_message_delegate.h

Issue 218403004: Fix the timestamp generation for webrtc native log. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix tommi's comments Created 6 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
OLDNEW
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"
11 #include "chrome/common/media/webrtc_logging_message_data.h"
11 #include "content/public/renderer/webrtc_log_message_delegate.h" 12 #include "content/public/renderer/webrtc_log_message_delegate.h"
12 #include "ipc/ipc_channel_proxy.h" 13 #include "ipc/ipc_channel_proxy.h"
13 14
14 namespace base { 15 namespace base {
15 class MessageLoopProxy; 16 class MessageLoopProxy;
16 } 17 }
17 18
18 class PartialCircularBuffer; 19 class PartialCircularBuffer;
19 class WebRtcLoggingMessageFilter; 20 class WebRtcLoggingMessageFilter;
20 21
(...skipping 13 matching lines...) Expand all
34 35
35 // content::WebRtcLogMessageDelegate implementation. 36 // content::WebRtcLogMessageDelegate implementation.
36 virtual void LogMessage(const std::string& message) OVERRIDE; 37 virtual void LogMessage(const std::string& message) OVERRIDE;
37 38
38 void OnFilterRemoved(); 39 void OnFilterRemoved();
39 40
40 void OnStartLogging(); 41 void OnStartLogging();
41 void OnStopLogging(); 42 void OnStopLogging();
42 43
43 private: 44 private:
44 void LogMessageOnIOThread(const std::string& message); 45 void LogMessageOnIOThread(const WebRtcLoggingMessageData& message);
45 void SendLogBuffer(); 46 void SendLogBuffer();
46 47
47 scoped_refptr<base::MessageLoopProxy> io_message_loop_; 48 scoped_refptr<base::MessageLoopProxy> io_message_loop_;
48 bool logging_started_; 49 bool logging_started_;
49 std::string log_buffer_; 50 std::vector<WebRtcLoggingMessageData> log_buffer_;
51
50 base::TimeTicks last_log_buffer_send_; 52 base::TimeTicks last_log_buffer_send_;
51 53
52 WebRtcLoggingMessageFilter* message_filter_; 54 WebRtcLoggingMessageFilter* message_filter_;
53 55
54 DISALLOW_COPY_AND_ASSIGN(ChromeWebRtcLogMessageDelegate); 56 DISALLOW_COPY_AND_ASSIGN(ChromeWebRtcLogMessageDelegate);
55 }; 57 };
56 58
57 #endif // CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_ 59 #endif // CHROME_RENDERER_MEDIA_CHROME_WEBRTC_LOG_MESSAGE_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698