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 "base/gtest_prod_util.h" | 8 #include "base/gtest_prod_util.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 | 57 |
58 // Registers a consumer of AEC dump in the browser process. This consumer will | 58 // Registers a consumer of AEC dump in the browser process. This consumer will |
59 // get a file handle when the AEC dump is enabled and a notification when it | 59 // get a file handle when the AEC dump is enabled and a notification when it |
60 // is disabled. | 60 // is disabled. |
61 void RegisterAecDumpConsumer(int id); | 61 void RegisterAecDumpConsumer(int id); |
62 | 62 |
63 // Unregisters a consumer of AEC dump in the browser process. | 63 // Unregisters a consumer of AEC dump in the browser process. |
64 void UnregisterAecDumpConsumer(int id); | 64 void UnregisterAecDumpConsumer(int id); |
65 | 65 |
66 // IPC::MessageFilter override. Called on |io_message_loop|. | 66 // IPC::MessageFilter override. Called on |io_message_loop|. |
67 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; | 67 virtual bool OnMessageReceived(const IPC::Message& message) override; |
68 virtual void OnFilterAdded(IPC::Sender* sender) OVERRIDE; | 68 virtual void OnFilterAdded(IPC::Sender* sender) override; |
69 virtual void OnFilterRemoved() OVERRIDE; | 69 virtual void OnFilterRemoved() override; |
70 virtual void OnChannelClosing() OVERRIDE; | 70 virtual void OnChannelClosing() override; |
71 | 71 |
72 // Accessed on |io_message_loop|. | 72 // Accessed on |io_message_loop|. |
73 void OnEnableAecDump(int id, IPC::PlatformFileForTransit file_handle); | 73 void OnEnableAecDump(int id, IPC::PlatformFileForTransit file_handle); |
74 void OnDisableAecDump(); | 74 void OnDisableAecDump(); |
75 | 75 |
76 // Accessed on |main_message_loop_|. | 76 // Accessed on |main_message_loop_|. |
77 void DoEnableAecDump(int id, IPC::PlatformFileForTransit file_handle); | 77 void DoEnableAecDump(int id, IPC::PlatformFileForTransit file_handle); |
78 void DoDisableAecDump(); | 78 void DoDisableAecDump(); |
79 void DoChannelClosingOnDelegates(); | 79 void DoChannelClosingOnDelegates(); |
80 int GetIdForDelegate(AecDumpMessageFilter::AecDumpDelegate* delegate); | 80 int GetIdForDelegate(AecDumpMessageFilter::AecDumpDelegate* delegate); |
(...skipping 18 matching lines...) Expand all Loading... |
99 | 99 |
100 // The singleton instance for this filter. | 100 // The singleton instance for this filter. |
101 static AecDumpMessageFilter* g_filter; | 101 static AecDumpMessageFilter* g_filter; |
102 | 102 |
103 DISALLOW_COPY_AND_ASSIGN(AecDumpMessageFilter); | 103 DISALLOW_COPY_AND_ASSIGN(AecDumpMessageFilter); |
104 }; | 104 }; |
105 | 105 |
106 } // namespace content | 106 } // namespace content |
107 | 107 |
108 #endif // CONTENT_RENDERER_MEDIA_AEC_DUMP_MESSAGE_FILTER_H_ | 108 #endif // CONTENT_RENDERER_MEDIA_AEC_DUMP_MESSAGE_FILTER_H_ |
OLD | NEW |