OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <string> | 10 #include <string> |
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 #include "chrome/browser/extensions/extension_util.h" | 57 #include "chrome/browser/extensions/extension_util.h" |
58 #include "chrome/browser/extensions/tab_helper.h" | 58 #include "chrome/browser/extensions/tab_helper.h" |
59 #include "chrome/browser/file_select_helper.h" | 59 #include "chrome/browser/file_select_helper.h" |
60 #include "chrome/browser/first_run/first_run.h" | 60 #include "chrome/browser/first_run/first_run.h" |
61 #include "chrome/browser/infobars/infobar_service.h" | 61 #include "chrome/browser/infobars/infobar_service.h" |
62 #include "chrome/browser/lifetime/application_lifetime.h" | 62 #include "chrome/browser/lifetime/application_lifetime.h" |
63 #include "chrome/browser/lifetime/keep_alive_registry.h" | 63 #include "chrome/browser/lifetime/keep_alive_registry.h" |
64 #include "chrome/browser/lifetime/keep_alive_types.h" | 64 #include "chrome/browser/lifetime/keep_alive_types.h" |
65 #include "chrome/browser/lifetime/scoped_keep_alive.h" | 65 #include "chrome/browser/lifetime/scoped_keep_alive.h" |
66 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" | 66 #include "chrome/browser/media/webrtc/media_capture_devices_dispatcher.h" |
67 #include "chrome/browser/memory/tab_manager_web_contents_data.h" | |
68 #include "chrome/browser/notifications/notification_ui_manager.h" | 67 #include "chrome/browser/notifications/notification_ui_manager.h" |
69 #include "chrome/browser/pepper_broker_infobar_delegate.h" | 68 #include "chrome/browser/pepper_broker_infobar_delegate.h" |
70 #include "chrome/browser/permissions/permission_request_manager.h" | 69 #include "chrome/browser/permissions/permission_request_manager.h" |
71 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 70 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
72 #include "chrome/browser/printing/background_printing_manager.h" | 71 #include "chrome/browser/printing/background_printing_manager.h" |
73 #include "chrome/browser/profiles/profile.h" | 72 #include "chrome/browser/profiles/profile.h" |
74 #include "chrome/browser/profiles/profile_destroyer.h" | 73 #include "chrome/browser/profiles/profile_destroyer.h" |
75 #include "chrome/browser/profiles/profile_metrics.h" | 74 #include "chrome/browser/profiles/profile_metrics.h" |
76 #include "chrome/browser/profiles/profiles_state.h" | 75 #include "chrome/browser/profiles/profiles_state.h" |
77 #include "chrome/browser/repost_form_warning_controller.h" | 76 #include "chrome/browser/repost_form_warning_controller.h" |
| 77 #include "chrome/browser/resource_coordinator/tab_manager_web_contents_data.h" |
78 #include "chrome/browser/search/search.h" | 78 #include "chrome/browser/search/search.h" |
79 #include "chrome/browser/sessions/session_restore.h" | 79 #include "chrome/browser/sessions/session_restore.h" |
80 #include "chrome/browser/sessions/session_service.h" | 80 #include "chrome/browser/sessions/session_service.h" |
81 #include "chrome/browser/sessions/session_service_factory.h" | 81 #include "chrome/browser/sessions/session_service_factory.h" |
82 #include "chrome/browser/sessions/session_tab_helper.h" | 82 #include "chrome/browser/sessions/session_tab_helper.h" |
83 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 83 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
84 #include "chrome/browser/ssl/security_state_tab_helper.h" | 84 #include "chrome/browser/ssl/security_state_tab_helper.h" |
85 #include "chrome/browser/sync/profile_sync_service_factory.h" | 85 #include "chrome/browser/sync/profile_sync_service_factory.h" |
86 #include "chrome/browser/sync/sync_ui_util.h" | 86 #include "chrome/browser/sync/sync_ui_util.h" |
87 #include "chrome/browser/tab_contents/tab_util.h" | 87 #include "chrome/browser/tab_contents/tab_util.h" |
(...skipping 2540 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2628 // new window later, thus we need to navigate the window now. | 2628 // new window later, thus we need to navigate the window now. |
2629 if (contents) { | 2629 if (contents) { |
2630 contents->web_contents()->GetController().LoadURL( | 2630 contents->web_contents()->GetController().LoadURL( |
2631 target_url, content::Referrer(), ui::PAGE_TRANSITION_LINK, | 2631 target_url, content::Referrer(), ui::PAGE_TRANSITION_LINK, |
2632 std::string()); // No extra headers. | 2632 std::string()); // No extra headers. |
2633 } | 2633 } |
2634 } | 2634 } |
2635 | 2635 |
2636 return contents != NULL; | 2636 return contents != NULL; |
2637 } | 2637 } |
OLD | NEW |