Index: webrtc/p2p/base/stun.h |
diff --git a/webrtc/p2p/base/stun.h b/webrtc/p2p/base/stun.h |
index ab200687f5ba4d8855730ade4dde2786c0354124..4ea45050cab4350c2d964dcb84e285665a25612e 100644 |
--- a/webrtc/p2p/base/stun.h |
+++ b/webrtc/p2p/base/stun.h |
@@ -156,6 +156,9 @@ class StunMessage { |
// Gets these specific attribute values. |
const StunErrorCodeAttribute* GetErrorCode() const; |
+ // Returns the code inside the error code attribute, if present, and |
+ // STUN_ERROR_GLOBAL_FAILURE otherwise. |
+ int GetErrorCodeValue() const; |
const StunUInt16ListAttribute* GetUnknownAttributes() const; |
// Takes ownership of the specified attribute and adds it to the message. |