| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ | 5 #ifndef CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ |
| 6 #define CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ | 6 #define CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ |
| 7 | 7 |
| 8 #include <map> | 8 #include <map> |
| 9 | 9 |
| 10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 }; | 44 }; |
| 45 | 45 |
| 46 enum Action { | 46 enum Action { |
| 47 ACTION_SET_LOCAL_DESCRIPTION, | 47 ACTION_SET_LOCAL_DESCRIPTION, |
| 48 ACTION_SET_REMOTE_DESCRIPTION, | 48 ACTION_SET_REMOTE_DESCRIPTION, |
| 49 ACTION_CREATE_OFFER, | 49 ACTION_CREATE_OFFER, |
| 50 ACTION_CREATE_ANSWER | 50 ACTION_CREATE_ANSWER |
| 51 }; | 51 }; |
| 52 | 52 |
| 53 // RenderProcessObserver implementation. | 53 // RenderProcessObserver implementation. |
| 54 virtual bool OnControlMessageReceived(const IPC::Message& message) OVERRIDE; | 54 virtual bool OnControlMessageReceived(const IPC::Message& message) override; |
| 55 | 55 |
| 56 // | 56 // |
| 57 // The following methods send an update to the browser process when a | 57 // The following methods send an update to the browser process when a |
| 58 // PeerConnection update happens. The caller should call the Track* methods | 58 // PeerConnection update happens. The caller should call the Track* methods |
| 59 // after calling RegisterPeerConnection and before calling | 59 // after calling RegisterPeerConnection and before calling |
| 60 // UnregisterPeerConnection, otherwise the Track* call has no effect. | 60 // UnregisterPeerConnection, otherwise the Track* call has no effect. |
| 61 // | 61 // |
| 62 | 62 |
| 63 // Sends an update when a PeerConnection has been created in Javascript. | 63 // Sends an update when a PeerConnection has been created in Javascript. |
| 64 // This should be called once and only once for each PeerConnection. | 64 // This should be called once and only once for each PeerConnection. |
| (...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 176 | 176 |
| 177 // This keeps track of the next available local ID. | 177 // This keeps track of the next available local ID. |
| 178 int next_lid_; | 178 int next_lid_; |
| 179 | 179 |
| 180 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTracker); | 180 DISALLOW_COPY_AND_ASSIGN(PeerConnectionTracker); |
| 181 }; | 181 }; |
| 182 | 182 |
| 183 } // namespace content | 183 } // namespace content |
| 184 | 184 |
| 185 #endif // CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ | 185 #endif // CONTENT_RENDERER_MEDIA_PEERCONNECTION_TRACKER_H_ |
| OLD | NEW |