Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(59)

Side by Side Diff: content/renderer/media/aec_dump_message_filter.h

Issue 2349713003: IPC::MessageFilter::OnFilterAdded: IPC::Sender -> IPC::Channel (Closed)
Patch Set: . Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « content/renderer/input/input_event_filter.cc ('k') | content/renderer/media/aec_dump_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698