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

Unified Diff: chrome/browser/intranet_redirect_detector.h

Issue 6292017: Extended: Add "system" URLRequestContext (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 9 years, 9 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
Index: chrome/browser/intranet_redirect_detector.h
diff --git a/chrome/browser/intranet_redirect_detector.h b/chrome/browser/intranet_redirect_detector.h
index e54566b2eb7595b89c106d19917970318ead5df8..3dfcb9cc4954c5f1b11ee6dd196e10d06dc416d2 100644
--- a/chrome/browser/intranet_redirect_detector.h
+++ b/chrome/browser/intranet_redirect_detector.h
@@ -37,7 +37,6 @@ class PrefService;
// redirection is in place, the returned GURL will be empty.
class IntranetRedirectDetector
: public URLFetcher::Delegate,
- public NotificationObserver,
public net::NetworkChangeNotifier::IPAddressObserver {
public:
// Only the main browser process loop should call this, when setting up
@@ -66,9 +65,6 @@ class IntranetRedirectDetector
// switch sleep has finished. Runs any pending fetch.
void FinishSleep();
- // Starts the fetches to determine the redirect URL if we can currently do so.
- void StartFetchesIfPossible();
-
// URLFetcher::Delegate
virtual void OnURLFetchComplete(const URLFetcher* source,
const GURL& url,
@@ -77,15 +73,9 @@ class IntranetRedirectDetector
const ResponseCookies& cookies,
const std::string& data);
- // NotificationObserver
- virtual void Observe(NotificationType type,
- const NotificationSource& source,
- const NotificationDetails& details);
-
// NetworkChangeNotifier::IPAddressObserver
virtual void OnIPAddressChanged();
- NotificationRegistrar registrar_;
GURL redirect_origin_;
ScopedRunnableMethodFactory<IntranetRedirectDetector> fetcher_factory_;
Fetchers fetchers_;
@@ -93,10 +83,6 @@ class IntranetRedirectDetector
bool in_sleep_; // True if we're in the seven-second "no fetching" period
// that begins at browser start, or the one-second "no
// fetching" period that begins after network switches.
- bool request_context_available_;
- // True when the profile has been loaded and the
- // default request context created, so we can
- // actually do the fetch with the right data.
DISALLOW_COPY_AND_ASSIGN(IntranetRedirectDetector);
};

Powered by Google App Engine
This is Rietveld 408576698