diff options
author | ttuttle@chromium.org <ttuttle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-02 19:53:40 +0000 |
---|---|---|
committer | ttuttle@chromium.org <ttuttle@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-01-02 19:53:40 +0000 |
commit | a37cc2844e80fefee5906740318b38fafd770054 (patch) | |
tree | 9d721e4441b4e04d5958051f5928ca2303449964 /chrome/browser/net/net_error_tab_helper.h | |
parent | d9d6b2a411811d1a2675307b3fb48a0c7d79974c (diff) | |
download | chromium_src-a37cc2844e80fefee5906740318b38fafd770054.zip chromium_src-a37cc2844e80fefee5906740318b38fafd770054.tar.gz chromium_src-a37cc2844e80fefee5906740318b38fafd770054.tar.bz2 |
Add some field trials to the DNS probing code
BUG=156415
Review URL: https://chromiumcodereview.appspot.com/11569044
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@174834 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/net/net_error_tab_helper.h')
-rw-r--r-- | chrome/browser/net/net_error_tab_helper.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/chrome/browser/net/net_error_tab_helper.h b/chrome/browser/net/net_error_tab_helper.h index bbe3f7f..9eb8a2b 100644 --- a/chrome/browser/net/net_error_tab_helper.h +++ b/chrome/browser/net/net_error_tab_helper.h @@ -22,6 +22,12 @@ class NetErrorTabHelper : public content::WebContentsObserver, public content::WebContentsUserData<NetErrorTabHelper> { public: + enum TestingState { + TESTING_DEFAULT, + TESTING_FORCE_DISABLED, + TESTING_FORCE_ENABLED + }; + virtual ~NetErrorTabHelper(); // content::WebContentsObserver implementation. @@ -35,7 +41,7 @@ class NetErrorTabHelper void OnDnsProbeFinished(DnsProbeService::Result result); - static void set_enabled_for_testing(bool enabled_for_testing); + static void set_state_for_testing(TestingState testing_state); protected: friend class content::WebContentsUserData<NetErrorTabHelper>; @@ -62,6 +68,8 @@ class NetErrorTabHelper // Whether the tab helper has started a DNS probe that has not yet returned // a result. bool dns_probe_running_; + // Whether we are enabled to run by the DnsProbe-Enable field trial. + const bool enabled_by_trial_; // "Use a web service to resolve navigation errors" preference is required // to allow probes. BooleanPrefMember resolve_errors_with_web_service_; |