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/chromeos/offline/offline_load_page.h" | 5 #include "chrome/browser/chromeos/offline/offline_load_page.h" |
6 | 6 |
7 #include "base/i18n/rtl.h" | 7 #include "base/i18n/rtl.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/string_piece.h" | 9 #include "base/string_piece.h" |
10 #include "base/stringprintf.h" | 10 #include "base/stringprintf.h" |
11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/browser_list.h" | 13 #include "chrome/browser/browser_list.h" |
14 #include "chrome/browser/browser_thread.h" | |
15 #include "chrome/browser/extensions/extension_service.h" | 14 #include "chrome/browser/extensions/extension_service.h" |
16 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
17 #include "chrome/browser/tab_contents/navigation_controller.h" | |
18 #include "chrome/browser/tab_contents/navigation_entry.h" | |
19 #include "chrome/browser/tab_contents/tab_contents.h" | |
20 #include "chrome/browser/tab_contents/tab_util.h" | 16 #include "chrome/browser/tab_contents/tab_util.h" |
21 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
22 #include "chrome/common/extensions/extension.h" | 18 #include "chrome/common/extensions/extension.h" |
23 #include "chrome/common/jstemplate_builder.h" | 19 #include "chrome/common/jstemplate_builder.h" |
24 #include "chrome/common/notification_service.h" | 20 #include "chrome/common/notification_service.h" |
25 #include "chrome/common/notification_type.h" | 21 #include "chrome/common/notification_type.h" |
26 #include "chrome/common/url_constants.h" | 22 #include "chrome/common/url_constants.h" |
| 23 #include "content/browser/browser_thread.h" |
| 24 #include "content/browser/tab_contents/navigation_controller.h" |
| 25 #include "content/browser/tab_contents/navigation_entry.h" |
| 26 #include "content/browser/tab_contents/tab_contents.h" |
27 #include "grit/browser_resources.h" | 27 #include "grit/browser_resources.h" |
28 #include "grit/generated_resources.h" | 28 #include "grit/generated_resources.h" |
29 #include "ui/base/l10n/l10n_util.h" | 29 #include "ui/base/l10n/l10n_util.h" |
30 #include "ui/base/resource/resource_bundle.h" | 30 #include "ui/base/resource/resource_bundle.h" |
31 | 31 |
32 namespace { | 32 namespace { |
33 | 33 |
34 // Maximum time to show a blank page. | 34 // Maximum time to show a blank page. |
35 const int kMaxBlankPeriod = 3000; | 35 const int kMaxBlankPeriod = 3000; |
36 | 36 |
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
203 registrar_.Remove(this, NotificationType::NETWORK_STATE_CHANGED, | 203 registrar_.Remove(this, NotificationType::NETWORK_STATE_CHANGED, |
204 NotificationService::AllSources()); | 204 NotificationService::AllSources()); |
205 Proceed(); | 205 Proceed(); |
206 } | 206 } |
207 } else { | 207 } else { |
208 InterstitialPage::Observe(type, source, details); | 208 InterstitialPage::Observe(type, source, details); |
209 } | 209 } |
210 } | 210 } |
211 | 211 |
212 } // namespace chromeos | 212 } // namespace chromeos |
OLD | NEW |