OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "remoting/host/dns_blackhole_checker.h" | 5 #include "remoting/host/dns_blackhole_checker.h" |
6 | 6 |
7 #include "googleurl/src/gurl.h" | 7 #include "googleurl/src/gurl.h" |
8 #include "net/url_request/url_fetcher.h" | 8 #include "net/url_request/url_fetcher.h" |
9 #include "remoting/host/chromoting_host_context.h" | 9 #include "remoting/host/chromoting_host_context.h" |
10 #include "remoting/host/constants.h" | |
11 | 10 |
12 namespace remoting { | 11 namespace remoting { |
13 | 12 |
14 // Default prefix added to the base talkgadget URL. | 13 // Default prefix added to the base talkgadget URL. |
15 const char kDefaultHostTalkGadgetPrefix[] = "chromoting-host"; | 14 const char kDefaultHostTalkGadgetPrefix[] = "chromoting-host"; |
16 | 15 |
17 // The base talkgadget URL. | 16 // The base talkgadget URL. |
18 const char kTalkGadgetUrl[] = ".talkgadget.google.com/talkgadget/" | 17 const char kTalkGadgetUrl[] = ".talkgadget.google.com/talkgadget/" |
19 "oauth/chrome-remote-desktop-host"; | 18 "oauth/chrome-remote-desktop-host"; |
20 | 19 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 url_fetcher_.reset(net::URLFetcher::Create(GURL(talkgadget_url), | 60 url_fetcher_.reset(net::URLFetcher::Create(GURL(talkgadget_url), |
62 net::URLFetcher::GET, this)); | 61 net::URLFetcher::GET, this)); |
63 url_fetcher_->SetRequestContext(context_->url_request_context_getter()); | 62 url_fetcher_->SetRequestContext(context_->url_request_context_getter()); |
64 url_fetcher_->Start(); | 63 url_fetcher_->Start(); |
65 } else { | 64 } else { |
66 LOG(INFO) << "Pending connection check"; | 65 LOG(INFO) << "Pending connection check"; |
67 } | 66 } |
68 } | 67 } |
69 | 68 |
70 } // namespace remoting | 69 } // namespace remoting |
OLD | NEW |