OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "chrome/browser/alternate_nav_url_fetcher.h" | 5 #include "chrome/browser/alternate_nav_url_fetcher.h" |
6 | 6 |
7 #include "app/l10n_util.h" | 7 #include "app/l10n_util.h" |
8 #include "app/resource_bundle.h" | 8 #include "app/resource_bundle.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/intranet_redirect_detector.h" | 10 #include "chrome/browser/intranet_redirect_detector.h" |
11 #include "chrome/browser/profile.h" | 11 #include "chrome/browser/profiles/profile.h" |
12 #include "chrome/browser/tab_contents/navigation_controller.h" | 12 #include "chrome/browser/tab_contents/navigation_controller.h" |
13 #include "chrome/browser/tab_contents/navigation_entry.h" | 13 #include "chrome/browser/tab_contents/navigation_entry.h" |
14 #include "chrome/browser/tab_contents/tab_contents.h" | 14 #include "chrome/browser/tab_contents/tab_contents.h" |
15 #include "chrome/common/notification_service.h" | 15 #include "chrome/common/notification_service.h" |
16 #include "grit/generated_resources.h" | 16 #include "grit/generated_resources.h" |
17 #include "grit/theme_resources.h" | 17 #include "grit/theme_resources.h" |
18 #include "net/base/registry_controlled_domain.h" | 18 #include "net/base/registry_controlled_domain.h" |
19 #include "net/url_request/url_request.h" | 19 #include "net/url_request/url_request.h" |
20 | 20 |
21 AlternateNavURLFetcher::AlternateNavURLFetcher( | 21 AlternateNavURLFetcher::AlternateNavURLFetcher( |
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 if (state_ == FAILED) | 161 if (state_ == FAILED) |
162 delete this; | 162 delete this; |
163 return; | 163 return; |
164 } | 164 } |
165 | 165 |
166 infobar_contents_ = controller_->tab_contents(); | 166 infobar_contents_ = controller_->tab_contents(); |
167 StoreActiveEntryUniqueID(infobar_contents_); | 167 StoreActiveEntryUniqueID(infobar_contents_); |
168 // We will be deleted when the InfoBar is destroyed. (See InfoBarClosed). | 168 // We will be deleted when the InfoBar is destroyed. (See InfoBarClosed). |
169 infobar_contents_->AddInfoBar(this); | 169 infobar_contents_->AddInfoBar(this); |
170 } | 170 } |
OLD | NEW |