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

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

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 4 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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 // OS_WIN 10 #endif // OS_WIN
(...skipping 10 matching lines...) Expand all
21 #include "base/path_service.h" 21 #include "base/path_service.h"
22 #include "base/process_info.h" 22 #include "base/process_info.h"
23 #include "base/string_number_conversions.h" 23 #include "base/string_number_conversions.h"
24 #include "base/string_util.h" 24 #include "base/string_util.h"
25 #include "base/stringprintf.h" 25 #include "base/stringprintf.h"
26 #include "base/threading/thread.h" 26 #include "base/threading/thread.h"
27 #include "base/threading/thread_restrictions.h" 27 #include "base/threading/thread_restrictions.h"
28 #include "base/time.h" 28 #include "base/time.h"
29 #include "base/utf_string_conversions.h" 29 #include "base/utf_string_conversions.h"
30 #include "chrome/app/chrome_command_ids.h" 30 #include "chrome/app/chrome_command_ids.h"
31 #include "chrome/browser/api/infobars/infobar_tab_helper.h"
31 #include "chrome/browser/autofill/personal_data_manager_factory.h" 32 #include "chrome/browser/autofill/personal_data_manager_factory.h"
32 #include "chrome/browser/background/background_contents_service.h" 33 #include "chrome/browser/background/background_contents_service.h"
33 #include "chrome/browser/background/background_contents_service_factory.h" 34 #include "chrome/browser/background/background_contents_service_factory.h"
34 #include "chrome/browser/bookmarks/bookmark_model.h" 35 #include "chrome/browser/bookmarks/bookmark_model.h"
35 #include "chrome/browser/bookmarks/bookmark_utils.h" 36 #include "chrome/browser/bookmarks/bookmark_utils.h"
36 #include "chrome/browser/browser_process.h" 37 #include "chrome/browser/browser_process.h"
37 #include "chrome/browser/browser_shutdown.h" 38 #include "chrome/browser/browser_shutdown.h"
38 #include "chrome/browser/character_encoding.h" 39 #include "chrome/browser/character_encoding.h"
39 #include "chrome/browser/chrome_page_zoom.h" 40 #include "chrome/browser/chrome_page_zoom.h"
40 #include "chrome/browser/content_settings/host_content_settings_map.h" 41 #include "chrome/browser/content_settings/host_content_settings_map.h"
(...skipping 11 matching lines...) Expand all
52 #include "chrome/browser/download/download_util.h" 53 #include "chrome/browser/download/download_util.h"
53 #include "chrome/browser/extensions/browser_extension_window_controller.h" 54 #include "chrome/browser/extensions/browser_extension_window_controller.h"
54 #include "chrome/browser/extensions/default_apps_trial.h" 55 #include "chrome/browser/extensions/default_apps_trial.h"
55 #include "chrome/browser/extensions/extension_prefs.h" 56 #include "chrome/browser/extensions/extension_prefs.h"
56 #include "chrome/browser/extensions/extension_service.h" 57 #include "chrome/browser/extensions/extension_service.h"
57 #include "chrome/browser/extensions/tab_helper.h" 58 #include "chrome/browser/extensions/tab_helper.h"
58 #include "chrome/browser/favicon/favicon_tab_helper.h" 59 #include "chrome/browser/favicon/favicon_tab_helper.h"
59 #include "chrome/browser/file_select_helper.h" 60 #include "chrome/browser/file_select_helper.h"
60 #include "chrome/browser/first_run/first_run.h" 61 #include "chrome/browser/first_run/first_run.h"
61 #include "chrome/browser/google/google_url_tracker.h" 62 #include "chrome/browser/google/google_url_tracker.h"
62 #include "chrome/browser/infobars/infobar_tab_helper.h" 63 #include "chrome/browser/infobars/simple_alert_infobar_delegate.h"
63 #include "chrome/browser/intents/device_attached_intent_source.h" 64 #include "chrome/browser/intents/device_attached_intent_source.h"
64 #include "chrome/browser/intents/register_intent_handler_infobar_delegate.h" 65 #include "chrome/browser/intents/register_intent_handler_infobar_delegate.h"
65 #include "chrome/browser/intents/web_intents_util.h" 66 #include "chrome/browser/intents/web_intents_util.h"
66 #include "chrome/browser/lifetime/application_lifetime.h" 67 #include "chrome/browser/lifetime/application_lifetime.h"
67 #include "chrome/browser/media/media_stream_devices_controller.h" 68 #include "chrome/browser/media/media_stream_devices_controller.h"
68 #include "chrome/browser/net/url_fixer_upper.h" 69 #include "chrome/browser/net/url_fixer_upper.h"
69 #include "chrome/browser/notifications/notification_ui_manager.h" 70 #include "chrome/browser/notifications/notification_ui_manager.h"
70 #include "chrome/browser/platform_util.h" 71 #include "chrome/browser/platform_util.h"
71 #include "chrome/browser/prefs/incognito_mode_prefs.h" 72 #include "chrome/browser/prefs/incognito_mode_prefs.h"
72 #include "chrome/browser/prefs/pref_service.h" 73 #include "chrome/browser/prefs/pref_service.h"
73 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h" 74 #include "chrome/browser/printing/cloud_print/cloud_print_setup_flow.h"
74 #include "chrome/browser/printing/print_preview_tab_controller.h" 75 #include "chrome/browser/printing/print_preview_tab_controller.h"
75 #include "chrome/browser/profiles/profile.h" 76 #include "chrome/browser/profiles/profile.h"
76 #include "chrome/browser/profiles/profile_destroyer.h" 77 #include "chrome/browser/profiles/profile_destroyer.h"
77 #include "chrome/browser/profiles/profile_manager.h" 78 #include "chrome/browser/profiles/profile_manager.h"
78 #include "chrome/browser/profiles/profile_metrics.h" 79 #include "chrome/browser/profiles/profile_metrics.h"
79 #include "chrome/browser/repost_form_warning_controller.h" 80 #include "chrome/browser/repost_form_warning_controller.h"
80 #include "chrome/browser/sessions/restore_tab_helper.h" 81 #include "chrome/browser/sessions/restore_tab_helper.h"
81 #include "chrome/browser/sessions/session_service.h" 82 #include "chrome/browser/sessions/session_service.h"
82 #include "chrome/browser/sessions/session_service_factory.h" 83 #include "chrome/browser/sessions/session_service_factory.h"
83 #include "chrome/browser/sessions/session_types.h" 84 #include "chrome/browser/sessions/session_types.h"
84 #include "chrome/browser/sessions/tab_restore_service.h" 85 #include "chrome/browser/sessions/tab_restore_service.h"
85 #include "chrome/browser/sessions/tab_restore_service_factory.h" 86 #include "chrome/browser/sessions/tab_restore_service_factory.h"
86 #include "chrome/browser/sync/profile_sync_service.h" 87 #include "chrome/browser/sync/profile_sync_service.h"
87 #include "chrome/browser/sync/profile_sync_service_factory.h" 88 #include "chrome/browser/sync/profile_sync_service_factory.h"
88 #include "chrome/browser/sync/sync_ui_util.h" 89 #include "chrome/browser/sync/sync_ui_util.h"
89 #include "chrome/browser/tab_contents/background_contents.h" 90 #include "chrome/browser/tab_contents/background_contents.h"
90 #include "chrome/browser/tab_contents/retargeting_details.h" 91 #include "chrome/browser/tab_contents/retargeting_details.h"
91 #include "chrome/browser/tab_contents/simple_alert_infobar_delegate.h"
92 #include "chrome/browser/tab_contents/tab_util.h" 92 #include "chrome/browser/tab_contents/tab_util.h"
93 #include "chrome/browser/themes/theme_service.h" 93 #include "chrome/browser/themes/theme_service.h"
94 #include "chrome/browser/themes/theme_service_factory.h" 94 #include "chrome/browser/themes/theme_service_factory.h"
95 #include "chrome/browser/ui/app_modal_dialogs/javascript_dialog_creator.h" 95 #include "chrome/browser/ui/app_modal_dialogs/javascript_dialog_creator.h"
96 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" 96 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
97 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h" 97 #include "chrome/browser/ui/bookmarks/bookmark_tab_helper.h"
98 #include "chrome/browser/ui/browser_command_controller.h" 98 #include "chrome/browser/ui/browser_command_controller.h"
99 #include "chrome/browser/ui/browser_commands.h" 99 #include "chrome/browser/ui/browser_commands.h"
100 #include "chrome/browser/ui/browser_content_setting_bubble_model_delegate.h" 100 #include "chrome/browser/ui/browser_content_setting_bubble_model_delegate.h"
101 #include "chrome/browser/ui/browser_dialogs.h" 101 #include "chrome/browser/ui/browser_dialogs.h"
(...skipping 2190 matching lines...) Expand 10 before | Expand all | Expand 10 after
2292 if (contents && !allow_js_access) { 2292 if (contents && !allow_js_access) {
2293 contents->web_contents()->GetController().LoadURL( 2293 contents->web_contents()->GetController().LoadURL(
2294 target_url, 2294 target_url,
2295 content::Referrer(), 2295 content::Referrer(),
2296 content::PAGE_TRANSITION_LINK, 2296 content::PAGE_TRANSITION_LINK,
2297 std::string()); // No extra headers. 2297 std::string()); // No extra headers.
2298 } 2298 }
2299 2299
2300 return contents != NULL; 2300 return contents != NULL;
2301 } 2301 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698