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

Unified Diff: remoting/jingle_glue/jingle_info_request.h

Issue 390983003: Remove remoting/jingle_glue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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 | « remoting/jingle_glue/iq_sender_unittest.cc ('k') | remoting/jingle_glue/jingle_info_request.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/jingle_glue/jingle_info_request.h
diff --git a/remoting/jingle_glue/jingle_info_request.h b/remoting/jingle_glue/jingle_info_request.h
deleted file mode 100644
index 118aa4a17fc1fd9639e4fcf06f312ce699091583..0000000000000000000000000000000000000000
--- a/remoting/jingle_glue/jingle_info_request.h
+++ /dev/null
@@ -1,64 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef REMOTING_JINGLE_GLUE_JINGLE_INFO_REQUEST_H_
-#define REMOTING_JINGLE_GLUE_JINGLE_INFO_REQUEST_H_
-
-#include <set>
-#include <string>
-#include <vector>
-
-#include "base/basictypes.h"
-#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
-#include "remoting/jingle_glue/iq_sender.h"
-
-namespace buzz {
-class XmlElement;
-} // namespace buzz
-
-namespace talk_base {
-class SocketAddress;
-} // namespace talk_base
-
-namespace remoting {
-
-class SignalStrategy;
-
-// JingleInfoRequest handles requesting STUN/Relay information from
-// the Google Talk network. The query is made when Send() is
-// called. The callback given to Send() is called when response to the
-// request is received.
-//
-// This class is not threadsafe and should be used on the same thread it is
-// created on.
-class JingleInfoRequest {
- public:
- // Callback to receive the Jingle configuration settings. All fields are empty
- // if the request has timed out.
- typedef base::Callback<void(const std::string& relay_token,
- const std::vector<std::string>& relay_servers,
- const std::vector<talk_base::SocketAddress>&
- stun_servers)> OnJingleInfoCallback;
-
- explicit JingleInfoRequest(SignalStrategy* signal_strategy);
- virtual ~JingleInfoRequest();
-
- void Send(const OnJingleInfoCallback& callback);
-
- private:
- struct PendingDnsRequest;
-
- void OnResponse(IqRequest* request, const buzz::XmlElement* stanza);
-
- IqSender iq_sender_;
- scoped_ptr<IqRequest> request_;
- OnJingleInfoCallback on_jingle_info_cb_;
-
- DISALLOW_COPY_AND_ASSIGN(JingleInfoRequest);
-};
-
-} // namespace remoting
-
-#endif // REMOTING_JINGLE_GLUE_JINGLE_INFO_REQUEST_H_
« no previous file with comments | « remoting/jingle_glue/iq_sender_unittest.cc ('k') | remoting/jingle_glue/jingle_info_request.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698