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

Unified Diff: webrtc/p2p/client/autoportallocator.h

Issue 2011503002: Remove unused libjingle_xmpphelp target. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Also remove autoportallocator.h, which seems to be orphaned, yet references the task type Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webrtc/libjingle/xmpp/jingleinfotask.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/p2p/client/autoportallocator.h
diff --git a/webrtc/p2p/client/autoportallocator.h b/webrtc/p2p/client/autoportallocator.h
deleted file mode 100644
index 7856510e1e837b6751ad9dd1945680a38886f7bb..0000000000000000000000000000000000000000
--- a/webrtc/p2p/client/autoportallocator.h
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright 2010 The WebRTC Project Authors. All rights reserved.
- *
- * Use of this source code is governed by a BSD-style license
- * that can be found in the LICENSE file in the root of the source
- * tree. An additional intellectual property rights grant can be found
- * in the file PATENTS. All contributing project authors may
- * be found in the AUTHORS file in the root of the source tree.
- */
-
-#ifndef WEBRTC_P2P_CLIENT_AUTOPORTALLOCATOR_H_
-#define WEBRTC_P2P_CLIENT_AUTOPORTALLOCATOR_H_
-
-#include <string>
-#include <vector>
-
-#include "webrtc/p2p/client/httpportallocator.h"
-#include "webrtc/base/sigslot.h"
-
-// This class sets the relay and stun servers using XmppClient.
-// It enables the client to traverse Proxy and NAT.
-class AutoPortAllocator : public cricket::HttpPortAllocator {
- public:
- AutoPortAllocator(rtc::NetworkManager* network_manager,
- const std::string& user_agent)
- : cricket::HttpPortAllocator(network_manager, user_agent) {
- }
-
- // Creates and initiates a task to get relay token from XmppClient and set
- // it appropriately.
- void SetXmppClient(buzz::XmppClient* client) {
- // The JingleInfoTask is freed by the task-runner.
- buzz::JingleInfoTask* jit = new buzz::JingleInfoTask(client);
- jit->SignalJingleInfo.connect(this, &AutoPortAllocator::OnJingleInfo);
- jit->Start();
- jit->RefreshJingleInfoNow();
- }
-
- private:
- void OnJingleInfo(
- const std::string& token,
- const std::vector<std::string>& relay_hosts,
- const std::vector<rtc::SocketAddress>& stun_hosts) {
- SetRelayToken(token);
- SetStunHosts(stun_hosts);
- SetRelayHosts(relay_hosts);
- }
-};
-
-#endif // WEBRTC_P2P_CLIENT_AUTOPORTALLOCATOR_H_
« no previous file with comments | « webrtc/libjingle/xmpp/jingleinfotask.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698