diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-08 19:12:47 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-01-08 19:12:47 +0000 |
commit | c4ff495718e7b190229e863e3387c4e5f99475a9 (patch) | |
tree | 3d2aef85fe5590905f80e71687154c664b9c42c0 /chrome/browser/browser_process_impl.h | |
parent | 8348cb325bebf4d3516bd94949f5a4eb7c4056a9 (diff) | |
download | chromium_src-c4ff495718e7b190229e863e3387c4e5f99475a9.zip chromium_src-c4ff495718e7b190229e863e3387c4e5f99475a9.tar.gz chromium_src-c4ff495718e7b190229e863e3387c4e5f99475a9.tar.bz2 |
Add autodetection of "intranet" redirection, for ISPs etc. that send typos and nonexistent addresses to custom pages, and plumb it to the code that puts up infobars when users type in a search that appears to be an intranet address, so we don't show these for erroneous cases.
BUG=31556
TEST=none
Review URL: http://codereview.chromium.org/525079
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35807 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_process_impl.h')
-rw-r--r-- | chrome/browser/browser_process_impl.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/chrome/browser/browser_process_impl.h b/chrome/browser/browser_process_impl.h index 51d0cf5..2c815ee 100644 --- a/chrome/browser/browser_process_impl.h +++ b/chrome/browser/browser_process_impl.h @@ -1,4 +1,4 @@ -// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. +// Copyright (c) 2010 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -182,6 +182,13 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe { return google_url_tracker_.get(); } + virtual IntranetRedirectDetector* intranet_redirect_detector() { + DCHECK(CalledOnValidThread()); + if (!intranet_redirect_detector_.get()) + CreateIntranetRedirectDetector(); + return intranet_redirect_detector_.get(); + } + virtual const std::string& GetApplicationLocale() { DCHECK(!locale_.empty()); return locale_; @@ -225,6 +232,7 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe { void CreateDebuggerWrapper(int port); void CreateDevToolsManager(); void CreateGoogleURLTracker(); + void CreateIntranetRedirectDetector(); void CreateNotificationUIManager(); #if defined(IPC_MESSAGE_LOG_ENABLED) @@ -282,6 +290,7 @@ class BrowserProcessImpl : public BrowserProcess, public NonThreadSafe { scoped_ptr<AutomationProviderList> automation_provider_list_; scoped_ptr<GoogleURLTracker> google_url_tracker_; + scoped_ptr<IntranetRedirectDetector> intranet_redirect_detector_; scoped_ptr<NotificationService> main_notification_service_; |