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_WEBRTC_LOGGING_MESSAGE_FILTER_H_ | 5 #ifndef CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_ |
6 #define CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_ | 6 #define CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_ |
7 | 7 |
8 #include "chrome/common/media/webrtc_logging_message_data.h" | 8 #include "chrome/common/media/webrtc_logging_message_data.h" |
9 #include "ipc/message_filter.h" | 9 #include "ipc/message_filter.h" |
10 | 10 |
(...skipping 29 matching lines...) Expand all Loading... |
40 // this object when we go away to ensure that it outlives any log messages | 40 // this object when we go away to ensure that it outlives any log messages |
41 // coming from libjingle. | 41 // coming from libjingle. |
42 // This is protected for unit test purposes. | 42 // This is protected for unit test purposes. |
43 // TODO(vrk): Remove ChromeWebRtcLogMessageDelegate's pointer to | 43 // TODO(vrk): Remove ChromeWebRtcLogMessageDelegate's pointer to |
44 // WebRtcLoggingMessageFilter so that we can write a unit test that doesn't | 44 // WebRtcLoggingMessageFilter so that we can write a unit test that doesn't |
45 // need this accessor. | 45 // need this accessor. |
46 ChromeWebRtcLogMessageDelegate* log_message_delegate_; | 46 ChromeWebRtcLogMessageDelegate* log_message_delegate_; |
47 | 47 |
48 private: | 48 private: |
49 // IPC::MessageFilter implementation. | 49 // IPC::MessageFilter implementation. |
50 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 50 virtual bool OnMessageReceived(const IPC::Message& message) override; |
51 virtual void OnFilterAdded(IPC::Sender* sender) OVERRIDE; | 51 virtual void OnFilterAdded(IPC::Sender* sender) override; |
52 virtual void OnFilterRemoved() OVERRIDE; | 52 virtual void OnFilterRemoved() override; |
53 virtual void OnChannelClosing() OVERRIDE; | 53 virtual void OnChannelClosing() override; |
54 | 54 |
55 void CreateLoggingHandler(); | 55 void CreateLoggingHandler(); |
56 | 56 |
57 void OnStartLogging(); | 57 void OnStartLogging(); |
58 void OnStopLogging(); | 58 void OnStopLogging(); |
59 void Send(IPC::Message* message); | 59 void Send(IPC::Message* message); |
60 | 60 |
61 IPC::Sender* sender_; | 61 IPC::Sender* sender_; |
62 | 62 |
63 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingMessageFilter); | 63 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingMessageFilter); |
64 }; | 64 }; |
65 | 65 |
66 #endif // CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_ | 66 #endif // CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_ |
OLD | NEW |