| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/ui/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <shellapi.h> | 8 #include <shellapi.h> |
| 9 #include <windows.h> | 9 #include <windows.h> |
| 10 #endif // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 58 #include "chrome/browser/platform_util.h" | 58 #include "chrome/browser/platform_util.h" |
| 59 #include "chrome/browser/prefs/pref_service.h" | 59 #include "chrome/browser/prefs/pref_service.h" |
| 60 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h" | 60 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h" |
| 61 #include "chrome/browser/profiles/profile.h" | 61 #include "chrome/browser/profiles/profile.h" |
| 62 #include "chrome/browser/sessions/session_service.h" | 62 #include "chrome/browser/sessions/session_service.h" |
| 63 #include "chrome/browser/sessions/session_types.h" | 63 #include "chrome/browser/sessions/session_types.h" |
| 64 #include "chrome/browser/sessions/tab_restore_service.h" | 64 #include "chrome/browser/sessions/tab_restore_service.h" |
| 65 #include "chrome/browser/sync/profile_sync_service.h" | 65 #include "chrome/browser/sync/profile_sync_service.h" |
| 66 #include "chrome/browser/sync/sync_ui_util.h" | 66 #include "chrome/browser/sync/sync_ui_util.h" |
| 67 #include "chrome/browser/tab_closeable_state_watcher.h" | 67 #include "chrome/browser/tab_closeable_state_watcher.h" |
| 68 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h" |
| 68 #include "chrome/browser/tabs/tab_strip_model.h" | 69 #include "chrome/browser/tabs/tab_strip_model.h" |
| 69 #include "chrome/browser/ui/find_bar/find_bar.h" | 70 #include "chrome/browser/ui/find_bar/find_bar.h" |
| 70 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 71 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
| 71 #include "chrome/browser/ui/find_bar/find_tab_helper.h" | 72 #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
| 72 #include "chrome/browser/ui/omnibox/location_bar.h" | 73 #include "chrome/browser/ui/omnibox/location_bar.h" |
| 73 #include "chrome/browser/ui/options/options_window.h" | 74 #include "chrome/browser/ui/options/options_window.h" |
| 74 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" | 75 #include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" |
| 75 #include "chrome/browser/ui/status_bubble.h" | 76 #include "chrome/browser/ui/status_bubble.h" |
| 76 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" | 77 #include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h" |
| 77 #include "chrome/browser/ui/tabs/dock_info.h" | 78 #include "chrome/browser/ui/tabs/dock_info.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 89 #include "chrome/common/extensions/extension_constants.h" | 90 #include "chrome/common/extensions/extension_constants.h" |
| 90 #include "chrome/common/notification_service.h" | 91 #include "chrome/common/notification_service.h" |
| 91 #include "chrome/common/page_transition_types.h" | 92 #include "chrome/common/page_transition_types.h" |
| 92 #include "chrome/common/pref_names.h" | 93 #include "chrome/common/pref_names.h" |
| 93 #include "chrome/common/profiling.h" | 94 #include "chrome/common/profiling.h" |
| 94 #include "chrome/common/url_constants.h" | 95 #include "chrome/common/url_constants.h" |
| 95 #include "chrome/common/web_apps.h" | 96 #include "chrome/common/web_apps.h" |
| 96 #include "content/browser/host_zoom_map.h" | 97 #include "content/browser/host_zoom_map.h" |
| 97 #include "content/browser/renderer_host/render_view_host.h" | 98 #include "content/browser/renderer_host/render_view_host.h" |
| 98 #include "content/browser/site_instance.h" | 99 #include "content/browser/site_instance.h" |
| 99 #include "content/browser/tab_contents/infobar_delegate.h" | |
| 100 #include "content/browser/tab_contents/interstitial_page.h" | 100 #include "content/browser/tab_contents/interstitial_page.h" |
| 101 #include "content/browser/tab_contents/navigation_controller.h" | 101 #include "content/browser/tab_contents/navigation_controller.h" |
| 102 #include "content/browser/tab_contents/navigation_entry.h" | 102 #include "content/browser/tab_contents/navigation_entry.h" |
| 103 #include "content/browser/tab_contents/tab_contents.h" | 103 #include "content/browser/tab_contents/tab_contents.h" |
| 104 #include "content/browser/tab_contents/tab_contents_view.h" | 104 #include "content/browser/tab_contents/tab_contents_view.h" |
| 105 #include "grit/chromium_strings.h" | 105 #include "grit/chromium_strings.h" |
| 106 #include "grit/generated_resources.h" | 106 #include "grit/generated_resources.h" |
| 107 #include "grit/locale_settings.h" | 107 #include "grit/locale_settings.h" |
| 108 #include "net/base/cookie_monster.h" | 108 #include "net/base/cookie_monster.h" |
| 109 #include "net/base/net_util.h" | 109 #include "net/base/net_util.h" |
| (...skipping 4287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 4397 // The page transition below is only for the purpose of inserting the tab. | 4397 // The page transition below is only for the purpose of inserting the tab. |
| 4398 browser->AddTab(view_source_contents, PageTransition::LINK); | 4398 browser->AddTab(view_source_contents, PageTransition::LINK); |
| 4399 } | 4399 } |
| 4400 | 4400 |
| 4401 if (profile_->HasSessionService()) { | 4401 if (profile_->HasSessionService()) { |
| 4402 SessionService* session_service = profile_->GetSessionService(); | 4402 SessionService* session_service = profile_->GetSessionService(); |
| 4403 if (session_service) | 4403 if (session_service) |
| 4404 session_service->TabRestored(&view_source_contents->controller(), false); | 4404 session_service->TabRestored(&view_source_contents->controller(), false); |
| 4405 } | 4405 } |
| 4406 } | 4406 } |
| OLD | NEW |