| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CONTENT_RENDERER_MEDIA_AEC_DUMP_MESSAGE_FILTER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_AEC_DUMP_MESSAGE_FILTER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_AEC_DUMP_MESSAGE_FILTER_H_ | 6 #define CONTENT_RENDERER_MEDIA_AEC_DUMP_MESSAGE_FILTER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 // Registers a consumer of AEC dump in the browser process. This consumer will | 59 // Registers a consumer of AEC dump in the browser process. This consumer will |
| 60 // get a file handle when the AEC dump is enabled and a notification when it | 60 // get a file handle when the AEC dump is enabled and a notification when it |
| 61 // is disabled. | 61 // is disabled. |
| 62 void RegisterAecDumpConsumer(int id); | 62 void RegisterAecDumpConsumer(int id); |
| 63 | 63 |
| 64 // Unregisters a consumer of AEC dump in the browser process. | 64 // Unregisters a consumer of AEC dump in the browser process. |
| 65 void UnregisterAecDumpConsumer(int id); | 65 void UnregisterAecDumpConsumer(int id); |
| 66 | 66 |
| 67 // IPC::MessageFilter override. Called on |io_task_runner|. | 67 // IPC::MessageFilter override. Called on |io_task_runner|. |
| 68 bool OnMessageReceived(const IPC::Message& message) override; | 68 bool OnMessageReceived(const IPC::Message& message) override; |
| 69 void OnFilterAdded(IPC::Sender* sender) override; | 69 void OnFilterAdded(IPC::Channel* channel) override; |
| 70 void OnFilterRemoved() override; | 70 void OnFilterRemoved() override; |
| 71 void OnChannelClosing() override; | 71 void OnChannelClosing() override; |
| 72 | 72 |
| 73 // Accessed on |io_task_runner_|. | 73 // Accessed on |io_task_runner_|. |
| 74 void OnEnableAecDump(int id, IPC::PlatformFileForTransit file_handle); | 74 void OnEnableAecDump(int id, IPC::PlatformFileForTransit file_handle); |
| 75 void OnDisableAecDump(); | 75 void OnDisableAecDump(); |
| 76 | 76 |
| 77 // Accessed on |main_task_runner_|. | 77 // Accessed on |main_task_runner_|. |
| 78 void DoEnableAecDump(int id, IPC::PlatformFileForTransit file_handle); | 78 void DoEnableAecDump(int id, IPC::PlatformFileForTransit file_handle); |
| 79 void DoDisableAecDump(); | 79 void DoDisableAecDump(); |
| (...skipping 20 matching lines...) Expand all Loading... |
| 100 | 100 |
| 101 // The singleton instance for this filter. | 101 // The singleton instance for this filter. |
| 102 static AecDumpMessageFilter* g_filter; | 102 static AecDumpMessageFilter* g_filter; |
| 103 | 103 |
| 104 DISALLOW_COPY_AND_ASSIGN(AecDumpMessageFilter); | 104 DISALLOW_COPY_AND_ASSIGN(AecDumpMessageFilter); |
| 105 }; | 105 }; |
| 106 | 106 |
| 107 } // namespace content | 107 } // namespace content |
| 108 | 108 |
| 109 #endif // CONTENT_RENDERER_MEDIA_AEC_DUMP_MESSAGE_FILTER_H_ | 109 #endif // CONTENT_RENDERER_MEDIA_AEC_DUMP_MESSAGE_FILTER_H_ |
| OLD | NEW |