| OLD | NEW |
| 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 // 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 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 // Add a new network list observer. Each observer is called | 70 // Add a new network list observer. Each observer is called |
| 71 // immidiately after its't registered and then later whenever | 71 // immidiately after its't registered and then later whenever |
| 72 // network configuration changes. | 72 // network configuration changes. |
| 73 void AddNetworkListObserver(NetworkListObserver* network_list_observer); | 73 void AddNetworkListObserver(NetworkListObserver* network_list_observer); |
| 74 | 74 |
| 75 // Removes network list observer. | 75 // Removes network list observer. |
| 76 void RemoveNetworkListObserver(NetworkListObserver* network_list_observer); | 76 void RemoveNetworkListObserver(NetworkListObserver* network_list_observer); |
| 77 | 77 |
| 78 // RenderViewObserver overrides. | 78 // RenderViewObserver overrides. |
| 79 virtual bool OnMessageReceived(const IPC::Message& message); | 79 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; |
| 80 | 80 |
| 81 private: | 81 private: |
| 82 friend class P2PHostAddressRequest; | 82 friend class P2PHostAddressRequest; |
| 83 friend class P2PSocketClient; | 83 friend class P2PSocketClient; |
| 84 class AsyncMessageSender; | 84 class AsyncMessageSender; |
| 85 | 85 |
| 86 base::MessageLoopProxy* message_loop(); | 86 base::MessageLoopProxy* message_loop(); |
| 87 | 87 |
| 88 // Called by P2PSocketClient. | 88 // Called by P2PSocketClient. |
| 89 int RegisterClient(P2PSocketClient* client); | 89 int RegisterClient(P2PSocketClient* client); |
| (...skipping 26 matching lines...) Expand all Loading... |
| 116 network_list_observers_; | 116 network_list_observers_; |
| 117 | 117 |
| 118 scoped_refptr<AsyncMessageSender> async_message_sender_; | 118 scoped_refptr<AsyncMessageSender> async_message_sender_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); | 120 DISALLOW_COPY_AND_ASSIGN(P2PSocketDispatcher); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace content | 123 } // namespace content |
| 124 | 124 |
| 125 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ | 125 #endif // CONTENT_RENDERER_P2P_SOCKET_DISPATCHER_H_ |
| OLD | NEW |