#ifndef TALK_P2P_BASE_STUNREQUEST_H_
#define TALK_P2P_BASE_STUNREQUEST_H_
-#include "talk/base/sigslot.h"
-#include "talk/base/thread.h"
-#include "talk/p2p/base/stun.h"
#include <map>
#include <string>
+#include "talk/p2p/base/stun.h"
+#include "webrtc/base/sigslot.h"
+#include "webrtc/base/thread.h"
namespace cricket {
// response or determine that the request has timed out.
class StunRequestManager {
public:
- StunRequestManager(talk_base::Thread* thread);
+ StunRequestManager(rtc::Thread* thread);
~StunRequestManager();
// Starts sending the given request (perhaps after a delay).
private:
typedef std::map<std::string, StunRequest*> RequestMap;
- talk_base::Thread* thread_;
+ rtc::Thread* thread_;
RequestMap requests_;
friend class StunRequest;
// Represents an individual request to be sent. The STUN message can either be
// constructed beforehand or built on demand.
-class StunRequest : public talk_base::MessageHandler {
+class StunRequest : public rtc::MessageHandler {
public:
StunRequest();
StunRequest(StunMessage* request);
void set_manager(StunRequestManager* manager);
// Handles messages for sending and timeout.
- void OnMessage(talk_base::Message* pmsg);
+ void OnMessage(rtc::Message* pmsg);
StunRequestManager* manager_;
StunMessage* msg_;