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

Side by Side Diff: remoting/protocol/http_ice_config_request.h

Issue 1707223002: Implement HttpIceConfigRequest (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_PROTOCOL_HTTP_ICE_CONFIG_REQUEST_H_
6 #define REMOTING_PROTOCOL_HTTP_ICE_CONFIG_REQUEST_H_
7
8 #include "base/callback.h"
9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h"
11 #include "remoting/base/url_request.h"
12 #include "remoting/protocol/ice_config_request.h"
13
14 namespace remoting {
15 namespace protocol {
16
17 // IceConfigRequest that fetches IceConfig from Google Talk servers using HTTP.
18 class HttpIceConfigRequest : public IceConfigRequest {
19 public:
20 HttpIceConfigRequest(UrlRequestFactory* url_request_factory,
21 const std::string& url);
22 ~HttpIceConfigRequest() override;
23
24 // IceConfigRequest interface.
25 void Send(const OnIceConfigCallback& callback) override;
26
27 private:
28 void OnResponse(const UrlRequest::Result& result);
29
30 std::string url_;
31 scoped_ptr<UrlRequest> url_request_;
32 OnIceConfigCallback on_ice_config_callback_;
33
34 DISALLOW_COPY_AND_ASSIGN(HttpIceConfigRequest);
35 };
36
37 } // namespace protocol
38 } // namespace remoting
39
40 #endif // REMOTING_PROTOCOL_HTTP_ICE_CONFIG_REQUEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698