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/browser/media/rtp_dump_type.h" | 10 #include "chrome/browser/media/rtp_dump_type.h" |
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 STOPPED, // Logging has been stopped, log still open in memory. | 116 STOPPED, // Logging has been stopped, log still open in memory. |
117 UPLOADING // Uploading log is in progress. | 117 UPLOADING // Uploading log is in progress. |
118 }; | 118 }; |
119 | 119 |
120 friend class content::BrowserThread; | 120 friend class content::BrowserThread; |
121 friend class base::DeleteHelper<WebRtcLoggingHandlerHost>; | 121 friend class base::DeleteHelper<WebRtcLoggingHandlerHost>; |
122 | 122 |
123 virtual ~WebRtcLoggingHandlerHost(); | 123 virtual ~WebRtcLoggingHandlerHost(); |
124 | 124 |
125 // BrowserMessageFilter implementation. | 125 // BrowserMessageFilter implementation. |
126 virtual void OnChannelClosing() OVERRIDE; | 126 virtual void OnChannelClosing() override; |
127 virtual void OnDestruct() const OVERRIDE; | 127 virtual void OnDestruct() const override; |
128 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 128 virtual bool OnMessageReceived(const IPC::Message& message) override; |
129 | 129 |
130 // Handles log message requests from renderer process. | 130 // Handles log message requests from renderer process. |
131 void OnAddLogMessages(const std::vector<WebRtcLoggingMessageData>& messages); | 131 void OnAddLogMessages(const std::vector<WebRtcLoggingMessageData>& messages); |
132 void OnLoggingStoppedInRenderer(); | 132 void OnLoggingStoppedInRenderer(); |
133 | 133 |
134 // Handles log message requests from browser process. | 134 // Handles log message requests from browser process. |
135 void AddLogMessageFromBrowser(const WebRtcLoggingMessageData& message); | 135 void AddLogMessageFromBrowser(const WebRtcLoggingMessageData& message); |
136 | 136 |
137 void StartLoggingIfAllowed(); | 137 void StartLoggingIfAllowed(); |
138 void DoStartLogging(); | 138 void DoStartLogging(); |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // The RTP dump handler responsible for creating the RTP header dump files. | 209 // The RTP dump handler responsible for creating the RTP header dump files. |
210 scoped_ptr<WebRtcRtpDumpHandler> rtp_dump_handler_; | 210 scoped_ptr<WebRtcRtpDumpHandler> rtp_dump_handler_; |
211 | 211 |
212 // The callback to call when StopRtpDump is called. | 212 // The callback to call when StopRtpDump is called. |
213 content::RenderProcessHost::WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; | 213 content::RenderProcessHost::WebRtcStopRtpDumpCallback stop_rtp_dump_callback_; |
214 | 214 |
215 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerHost); | 215 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerHost); |
216 }; | 216 }; |
217 | 217 |
218 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ | 218 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ |
OLD | NEW |