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

Side by Side Diff: content/renderer/p2p/socket_dispatcher.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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // P2PSocketDispatcher is a per-renderer object that dispatchers all 5 // P2PSocketDispatcher is a per-renderer object that dispatchers all
6 // P2P messages received from the browser and relays all P2P messages 6 // P2P messages received from the browser and relays all P2P messages
7 // sent to the browser. P2PSocketClient instances register themselves 7 // sent to the browser. P2PSocketClient instances register themselves
8 // with the dispatcher using RegisterClient() and UnregisterClient(). 8 // with the dispatcher using RegisterClient() and UnregisterClient().
9 // 9 //
10 // Relationship of classes. 10 // Relationship of classes.
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 71
72 private: 72 private:
73 friend class P2PAsyncAddressResolver; 73 friend class P2PAsyncAddressResolver;
74 friend class P2PSocketClientImpl; 74 friend class P2PSocketClientImpl;
75 75
76 // Send a message asynchronously. 76 // Send a message asynchronously.
77 virtual void Send(IPC::Message* message); 77 virtual void Send(IPC::Message* message);
78 78
79 // IPC::MessageFilter override. Called on IO thread. 79 // IPC::MessageFilter override. Called on IO thread.
80 bool OnMessageReceived(const IPC::Message& message) override; 80 bool OnMessageReceived(const IPC::Message& message) override;
81 void OnFilterAdded(IPC::Sender* sender) override; 81 void OnFilterAdded(IPC::Channel* channel) override;
82 void OnFilterRemoved() override; 82 void OnFilterRemoved() override;
83 void OnChannelClosing() override; 83 void OnChannelClosing() override;
84 void OnChannelConnected(int32_t peer_pid) override; 84 void OnChannelConnected(int32_t peer_pid) override;
85 85
86 base::SingleThreadTaskRunner* task_runner(); 86 base::SingleThreadTaskRunner* task_runner();
87 87
88 // Called by P2PSocketClient. 88 // Called by P2PSocketClient.
89 int RegisterClient(P2PSocketClientImpl* client); 89 int RegisterClient(P2PSocketClientImpl* client);
90 void UnregisterClient(int id); 90 void UnregisterClient(int id);
91 void SendP2PMessage(IPC::Message* msg); 91 void SendP2PMessage(IPC::Message* msg);
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 125
126 // To indicate whether IPC could be invoked on this dispatcher. 126 // To indicate whether IPC could be invoked on this dispatcher.
127 bool connected_ = false; 127 bool connected_ = false;
128 128
129 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); 129 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher);
130 }; 130 };
131 131
132 } // namespace content 132 } // namespace content
133 133
134 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ 134 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/renderer/media/video_capture_message_filter.cc ('k') | content/renderer/p2p/socket_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698