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

Side by Side Diff: chrome/renderer/media/webrtc_logging_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 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 "base/macros.h" 8 #include "base/macros.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "chrome/common/media/webrtc_logging_message_data.h" 10 #include "chrome/common/media/webrtc_logging_message_data.h"
(...skipping 28 matching lines...) Expand all
39 // coming from libjingle. 39 // coming from libjingle.
40 // This is protected for unit test purposes. 40 // This is protected for unit test purposes.
41 // TODO(vrk): Remove ChromeWebRtcLogMessageDelegate's pointer to 41 // TODO(vrk): Remove ChromeWebRtcLogMessageDelegate's pointer to
42 // WebRtcLoggingMessageFilter so that we can write a unit test that doesn't 42 // WebRtcLoggingMessageFilter so that we can write a unit test that doesn't
43 // need this accessor. 43 // need this accessor.
44 ChromeWebRtcLogMessageDelegate* log_message_delegate_; 44 ChromeWebRtcLogMessageDelegate* log_message_delegate_;
45 45
46 private: 46 private:
47 // IPC::MessageFilter implementation. 47 // IPC::MessageFilter implementation.
48 bool OnMessageReceived(const IPC::Message& message) override; 48 bool OnMessageReceived(const IPC::Message& message) override;
49 void OnFilterAdded(IPC::Sender* sender) override; 49 void OnFilterAdded(IPC::Channel* channel) override;
50 void OnFilterRemoved() override; 50 void OnFilterRemoved() override;
51 void OnChannelClosing() override; 51 void OnChannelClosing() override;
52 52
53 void CreateLoggingHandler(); 53 void CreateLoggingHandler();
54 54
55 void OnStartLogging(); 55 void OnStartLogging();
56 void OnStopLogging(); 56 void OnStopLogging();
57 void Send(IPC::Message* message); 57 void Send(IPC::Message* message);
58 58
59 IPC::Sender* sender_; 59 IPC::Sender* sender_;
60 60
61 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingMessageFilter); 61 DISALLOW_COPY_AND_ASSIGN(WebRtcLoggingMessageFilter);
62 }; 62 };
63 63
64 #endif // CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_ 64 #endif // CHROME_RENDERER_MEDIA_WEBRTC_LOGGING_MESSAGE_FILTER_H_
OLDNEW
« no previous file with comments | « chrome/renderer/media/cast_ipc_dispatcher.cc ('k') | chrome/renderer/media/webrtc_logging_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698