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

Side by Side Diff: content/browser/renderer_host/p2p/socket_host.h

Issue 780713002: Fix remaining WeakPtrFactory ordering problems (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 6 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "content/common/content_export.h" 9 #include "content/common/content_export.h"
10 #include "content/common/p2p_socket_type.h" 10 #include "content/common/p2p_socket_type.h"
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 void IncrementDelayedBytes(uint32 size); 153 void IncrementDelayedBytes(uint32 size);
154 void DecrementDelayedBytes(uint32 size); 154 void DecrementDelayedBytes(uint32 size);
155 155
156 IPC::Sender* message_sender_; 156 IPC::Sender* message_sender_;
157 int id_; 157 int id_;
158 State state_; 158 State state_;
159 bool dump_incoming_rtp_packet_; 159 bool dump_incoming_rtp_packet_;
160 bool dump_outgoing_rtp_packet_; 160 bool dump_outgoing_rtp_packet_;
161 RenderProcessHost::WebRtcRtpPacketCallback packet_dump_callback_; 161 RenderProcessHost::WebRtcRtpPacketCallback packet_dump_callback_;
162 162
163 base::WeakPtrFactory<P2PSocketHost> weak_ptr_factory_;
164
165 ProtocolType protocol_type_; 163 ProtocolType protocol_type_;
166 164
167 private: 165 private:
168 // Track total delayed packets for calculating how many packets are 166 // Track total delayed packets for calculating how many packets are
169 // delayed by system at the end of call. 167 // delayed by system at the end of call.
170 uint32 send_packets_delayed_total_; 168 uint32 send_packets_delayed_total_;
171 uint32 send_packets_total_; 169 uint32 send_packets_total_;
172 170
173 // Track the maximum of consecutive delayed bytes caused by system's 171 // Track the maximum of consecutive delayed bytes caused by system's
174 // EWOULDBLOCK. 172 // EWOULDBLOCK.
175 int32 send_bytes_delayed_max_; 173 int32 send_bytes_delayed_max_;
176 int32 send_bytes_delayed_cur_; 174 int32 send_bytes_delayed_cur_;
177 175
176 base::WeakPtrFactory<P2PSocketHost> weak_ptr_factory_;
177
178 DISALLOW_COPY_AND_ASSIGN(P2PSocketHost); 178 DISALLOW_COPY_AND_ASSIGN(P2PSocketHost);
179 }; 179 };
180 180
181 } // namespace content 181 } // namespace content
182 182
183 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_ 183 #endif // CONTENT_BROWSER_RENDERER_HOST_P2P_SOCKET_HOST_H_
OLDNEW
« no previous file with comments | « content/browser/gamepad/gamepad_provider_unittest.cc ('k') | content/browser/renderer_host/p2p/socket_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698