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_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ | 5 #ifndef CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ |
6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ | 6 #define CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ |
7 | 7 |
8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
9 #include "base/memory/shared_memory.h" | 9 #include "base/memory/shared_memory.h" |
10 #include "chrome/common/media/webrtc_logging_message_data.h" | 10 #include "chrome/common/media/webrtc_logging_message_data.h" |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
110 }; | 110 }; |
111 | 111 |
112 friend class content::BrowserThread; | 112 friend class content::BrowserThread; |
113 friend class base::DeleteHelper<WebRtcLoggingHandlerHost>; | 113 friend class base::DeleteHelper<WebRtcLoggingHandlerHost>; |
114 | 114 |
115 virtual ~WebRtcLoggingHandlerHost(); | 115 virtual ~WebRtcLoggingHandlerHost(); |
116 | 116 |
117 // BrowserMessageFilter implementation. | 117 // BrowserMessageFilter implementation. |
118 virtual void OnChannelClosing() OVERRIDE; | 118 virtual void OnChannelClosing() OVERRIDE; |
119 virtual void OnDestruct() const OVERRIDE; | 119 virtual void OnDestruct() const OVERRIDE; |
120 virtual bool OnMessageReceived(const IPC::Message& message, | 120 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
121 bool* message_was_ok) OVERRIDE; | |
122 | 121 |
123 // Handles log message requests from renderer process. | 122 // Handles log message requests from renderer process. |
124 void OnAddLogMessages(const std::vector<WebRtcLoggingMessageData>& messages); | 123 void OnAddLogMessages(const std::vector<WebRtcLoggingMessageData>& messages); |
125 void OnLoggingStoppedInRenderer(); | 124 void OnLoggingStoppedInRenderer(); |
126 | 125 |
127 // Handles log message requests from browser process. | 126 // Handles log message requests from browser process. |
128 void AddLogMessageFromBrowser(const WebRtcLoggingMessageData& message); | 127 void AddLogMessageFromBrowser(const WebRtcLoggingMessageData& message); |
129 | 128 |
130 void StartLoggingIfAllowed(); | 129 void StartLoggingIfAllowed(); |
131 void DoStartLogging(); | 130 void DoStartLogging(); |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
177 base::SharedMemoryHandle foreign_memory_handle_; | 176 base::SharedMemoryHandle foreign_memory_handle_; |
178 | 177 |
179 // The system time in ms when logging is started. Reset when logging_state_ | 178 // The system time in ms when logging is started. Reset when logging_state_ |
180 // changes to STOPPED. | 179 // changes to STOPPED. |
181 base::Time logging_started_time_; | 180 base::Time logging_started_time_; |
182 | 181 |
183 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerHost); | 182 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerHost); |
184 }; | 183 }; |
185 | 184 |
186 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ | 185 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ |
OLD | NEW |