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

Unified Diff: remoting/host/dns_blackhole_checker.h

Issue 11053024: Remove ChromotingHostContext from DnsBlackholeChecker. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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/host/desktop_environment.cc ('k') | remoting/host/dns_blackhole_checker.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/dns_blackhole_checker.h
diff --git a/remoting/host/dns_blackhole_checker.h b/remoting/host/dns_blackhole_checker.h
index 4ff75b4c8879b5b1fc358ffe4bfa13d07d308281..dc2fea60dd209dbde4ac95114b006089d85601d9 100644
--- a/remoting/host/dns_blackhole_checker.h
+++ b/remoting/host/dns_blackhole_checker.h
@@ -9,6 +9,10 @@
#include "base/callback.h"
+namespace net {
+class URLRequestContextGetter;
+} // namespace net
+
namespace remoting {
// This is the default prefix that is prepended to the kTalkGadgetUrl to form
@@ -16,12 +20,11 @@ namespace remoting {
// to change the prefix that is used.
extern const char kDefaultHostTalkGadgetPrefix[];
-class ChromotingHostContext;
-
class DnsBlackholeChecker : public net::URLFetcherDelegate {
public:
- DnsBlackholeChecker(ChromotingHostContext* context,
- std::string talkgadget_prefix);
+ DnsBlackholeChecker(
+ scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
+ std::string talkgadget_prefix);
virtual ~DnsBlackholeChecker();
// net::URLFetcherDelegate interface.
@@ -33,7 +36,8 @@ class DnsBlackholeChecker : public net::URLFetcherDelegate {
void CheckForDnsBlackhole(const base::Callback<void(bool)>& callback);
private:
- ChromotingHostContext* context_;
+ // URL request context getter to use to create the URL fetcher.
+ scoped_refptr<net::URLRequestContextGetter> url_request_context_getter_;
// URL fetcher used to verify access to the host talkgadget.
scoped_ptr<net::URLFetcher> url_fetcher_;
« no previous file with comments | « remoting/host/desktop_environment.cc ('k') | remoting/host/dns_blackhole_checker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698