| 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 "content/public/browser/browser_message_filter.h" | 10 #include "content/public/browser/browser_message_filter.h" |
| (...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 friend class base::DeleteHelper<WebRtcLoggingHandlerHost>; | 96 friend class base::DeleteHelper<WebRtcLoggingHandlerHost>; |
| 97 | 97 |
| 98 virtual ~WebRtcLoggingHandlerHost(); | 98 virtual ~WebRtcLoggingHandlerHost(); |
| 99 | 99 |
| 100 // BrowserMessageFilter implementation. | 100 // BrowserMessageFilter implementation. |
| 101 virtual void OnChannelClosing() OVERRIDE; | 101 virtual void OnChannelClosing() OVERRIDE; |
| 102 virtual void OnDestruct() const OVERRIDE; | 102 virtual void OnDestruct() const OVERRIDE; |
| 103 virtual bool OnMessageReceived(const IPC::Message& message, | 103 virtual bool OnMessageReceived(const IPC::Message& message, |
| 104 bool* message_was_ok) OVERRIDE; | 104 bool* message_was_ok) OVERRIDE; |
| 105 | 105 |
| 106 // Handles log message requests from both renderer process. | 106 // Handles log message requests from renderer process. |
| 107 void OnAddLogMessage(const std::string& message); | 107 void OnAddLogMessage(const std::string& message); |
| 108 void OnLoggingStoppedInRenderer(); | 108 void OnLoggingStoppedInRenderer(); |
| 109 | 109 |
| 110 // Handles log message requests from browser process. | 110 // Handles log message requests from browser process. |
| 111 void AddLogMessageFromBrowser(const std::string& message); | 111 void AddLogMessageFromBrowser(const std::string& message); |
| 112 | 112 |
| 113 void StartLoggingIfAllowed(); | 113 void StartLoggingIfAllowed(); |
| 114 void DoStartLogging(); | 114 void DoStartLogging(); |
| 115 void LogMachineInfoOnFileThread(); | 115 void LogMachineInfoOnFileThread(); |
| 116 void LogMachineInfoOnIOThread(const net::NetworkInterfaceList& network_list); | 116 void LogMachineInfoOnIOThread(const net::NetworkInterfaceList& network_list); |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 // This is the handle to be passed to the render process. It's stored so that | 155 // This is the handle to be passed to the render process. It's stored so that |
| 156 // it doesn't have to be passed on when posting messages between threads. | 156 // it doesn't have to be passed on when posting messages between threads. |
| 157 // It's only accessed on the IO thread. | 157 // It's only accessed on the IO thread. |
| 158 base::SharedMemoryHandle foreign_memory_handle_; | 158 base::SharedMemoryHandle foreign_memory_handle_; |
| 159 | 159 |
| 160 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerHost); | 160 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingHandlerHost); |
| 161 }; | 161 }; |
| 162 | 162 |
| 163 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ | 163 #endif // CHROME_BROWSER_MEDIA_WEBRTC_LOGGING_HANDLER_HOST_H_ |
| OLD | NEW |