Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(230)

Side by Side Diff: chrome/browser/ui/browser.cc

Issue 316203003: Componentize GoogleURLTracker(InfoBarDelegate,MapEntry,NavHelper) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Nits Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <shellapi.h> 9 #include <shellapi.h>
10 #endif // defined(OS_WIN) 10 #endif // defined(OS_WIN)
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 #include "chrome/browser/download/download_item_model.h" 49 #include "chrome/browser/download/download_item_model.h"
50 #include "chrome/browser/download/download_service.h" 50 #include "chrome/browser/download/download_service.h"
51 #include "chrome/browser/download/download_service_factory.h" 51 #include "chrome/browser/download/download_service_factory.h"
52 #include "chrome/browser/download/download_shelf.h" 52 #include "chrome/browser/download/download_shelf.h"
53 #include "chrome/browser/extensions/browser_extension_window_controller.h" 53 #include "chrome/browser/extensions/browser_extension_window_controller.h"
54 #include "chrome/browser/extensions/extension_service.h" 54 #include "chrome/browser/extensions/extension_service.h"
55 #include "chrome/browser/extensions/tab_helper.h" 55 #include "chrome/browser/extensions/tab_helper.h"
56 #include "chrome/browser/favicon/favicon_tab_helper.h" 56 #include "chrome/browser/favicon/favicon_tab_helper.h"
57 #include "chrome/browser/file_select_helper.h" 57 #include "chrome/browser/file_select_helper.h"
58 #include "chrome/browser/first_run/first_run.h" 58 #include "chrome/browser/first_run/first_run.h"
59 #include "chrome/browser/google/google_url_tracker.h"
60 #include "chrome/browser/history/top_sites.h" 59 #include "chrome/browser/history/top_sites.h"
61 #include "chrome/browser/infobars/infobar_service.h" 60 #include "chrome/browser/infobars/infobar_service.h"
62 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h" 61 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h"
63 #include "chrome/browser/lifetime/application_lifetime.h" 62 #include "chrome/browser/lifetime/application_lifetime.h"
64 #include "chrome/browser/notifications/notification_ui_manager.h" 63 #include "chrome/browser/notifications/notification_ui_manager.h"
65 #include "chrome/browser/pepper_broker_infobar_delegate.h" 64 #include "chrome/browser/pepper_broker_infobar_delegate.h"
66 #include "chrome/browser/prefs/incognito_mode_prefs.h" 65 #include "chrome/browser/prefs/incognito_mode_prefs.h"
67 #include "chrome/browser/profiles/profile.h" 66 #include "chrome/browser/profiles/profile.h"
68 #include "chrome/browser/profiles/profile_destroyer.h" 67 #include "chrome/browser/profiles/profile_destroyer.h"
69 #include "chrome/browser/profiles/profile_metrics.h" 68 #include "chrome/browser/profiles/profile_metrics.h"
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 #include "chrome/common/chrome_constants.h" 142 #include "chrome/common/chrome_constants.h"
144 #include "chrome/common/chrome_switches.h" 143 #include "chrome/common/chrome_switches.h"
145 #include "chrome/common/custom_handlers/protocol_handler.h" 144 #include "chrome/common/custom_handlers/protocol_handler.h"
146 #include "chrome/common/net/url_fixer_upper.h" 145 #include "chrome/common/net/url_fixer_upper.h"
147 #include "chrome/common/pref_names.h" 146 #include "chrome/common/pref_names.h"
148 #include "chrome/common/profiling.h" 147 #include "chrome/common/profiling.h"
149 #include "chrome/common/search_types.h" 148 #include "chrome/common/search_types.h"
150 #include "chrome/common/url_constants.h" 149 #include "chrome/common/url_constants.h"
151 #include "components/bookmarks/browser/bookmark_model.h" 150 #include "components/bookmarks/browser/bookmark_model.h"
152 #include "components/bookmarks/browser/bookmark_utils.h" 151 #include "components/bookmarks/browser/bookmark_utils.h"
152 #include "components/google/core/browser/google_url_tracker.h"
153 #include "components/startup_metric_utils/startup_metric_utils.h" 153 #include "components/startup_metric_utils/startup_metric_utils.h"
154 #include "components/web_modal/web_contents_modal_dialog_manager.h" 154 #include "components/web_modal/web_contents_modal_dialog_manager.h"
155 #include "content/public/browser/devtools_manager.h" 155 #include "content/public/browser/devtools_manager.h"
156 #include "content/public/browser/download_item.h" 156 #include "content/public/browser/download_item.h"
157 #include "content/public/browser/download_manager.h" 157 #include "content/public/browser/download_manager.h"
158 #include "content/public/browser/interstitial_page.h" 158 #include "content/public/browser/interstitial_page.h"
159 #include "content/public/browser/invalidate_type.h" 159 #include "content/public/browser/invalidate_type.h"
160 #include "content/public/browser/navigation_controller.h" 160 #include "content/public/browser/navigation_controller.h"
161 #include "content/public/browser/navigation_entry.h" 161 #include "content/public/browser/navigation_entry.h"
162 #include "content/public/browser/notification_details.h" 162 #include "content/public/browser/notification_details.h"
(...skipping 2257 matching lines...) Expand 10 before | Expand all | Expand 10 after
2420 if (contents && !allow_js_access) { 2420 if (contents && !allow_js_access) {
2421 contents->web_contents()->GetController().LoadURL( 2421 contents->web_contents()->GetController().LoadURL(
2422 target_url, 2422 target_url,
2423 content::Referrer(), 2423 content::Referrer(),
2424 content::PAGE_TRANSITION_LINK, 2424 content::PAGE_TRANSITION_LINK,
2425 std::string()); // No extra headers. 2425 std::string()); // No extra headers.
2426 } 2426 }
2427 2427
2428 return contents != NULL; 2428 return contents != NULL;
2429 } 2429 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/android/infobars/auto_login_prompter.cc ('k') | chrome/browser/ui/browser_navigator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698