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

Side by Side Diff: content/renderer/p2p/socket_dispatcher.h

Issue 1162943002: Replace more ObserverList with base::ObserverList. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@observer
Patch Set: Created 5 years, 6 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
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/renderer/p2p/socket_dispatcher.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 const base::TimeTicks& timestamp); 102 const base::TimeTicks& timestamp);
103 103
104 P2PSocketClientImpl* GetClient(int socket_id); 104 P2PSocketClientImpl* GetClient(int socket_id);
105 105
106 scoped_refptr<base::SingleThreadTaskRunner> ipc_task_runner_; 106 scoped_refptr<base::SingleThreadTaskRunner> ipc_task_runner_;
107 IDMap<P2PSocketClientImpl> clients_; 107 IDMap<P2PSocketClientImpl> clients_;
108 108
109 IDMap<P2PAsyncAddressResolver> host_address_requests_; 109 IDMap<P2PAsyncAddressResolver> host_address_requests_;
110 110
111 bool network_notifications_started_; 111 bool network_notifications_started_;
112 scoped_refptr<ObserverListThreadSafe<NetworkListObserver> > 112 scoped_refptr<base::ObserverListThreadSafe<NetworkListObserver>>
113 network_list_observers_; 113 network_list_observers_;
114 114
115 IPC::Sender* sender_; 115 IPC::Sender* sender_;
116 116
117 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); 117 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher);
118 }; 118 };
119 119
120 } // namespace content 120 } // namespace content
121 121
122 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ 122 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/renderer/p2p/socket_dispatcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698