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

Side by Side Diff: chrome/browser/automation/testing_automation_provider.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: Address review comments. 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/automation/testing_automation_provider.h" 5 #include "chrome/browser/automation/testing_automation_provider.h"
6 6
7 #include <map> 7 #include <map>
8 #include <set> 8 #include <set>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/file_path.h" 15 #include "base/file_path.h"
16 #include "base/json/json_reader.h" 16 #include "base/json/json_reader.h"
17 #include "base/json/json_writer.h" 17 #include "base/json/json_writer.h"
18 #include "base/json/string_escape.h" 18 #include "base/json/string_escape.h"
19 #include "base/path_service.h" 19 #include "base/path_service.h"
20 #include "base/process.h" 20 #include "base/process.h"
21 #include "base/process_util.h" 21 #include "base/process_util.h"
22 #include "base/stringprintf.h" 22 #include "base/stringprintf.h"
23 #include "base/threading/thread_restrictions.h" 23 #include "base/threading/thread_restrictions.h"
24 #include "base/time.h" 24 #include "base/time.h"
25 #include "base/utf_string_conversions.h" 25 #include "base/utf_string_conversions.h"
26 #include "chrome/app/chrome_command_ids.h" 26 #include "chrome/app/chrome_command_ids.h"
27 #include "chrome/browser/api/infobars/confirm_infobar_delegate.h"
28 #include "chrome/browser/api/infobars/link_infobar_delegate.h"
27 #include "chrome/browser/autocomplete/autocomplete_controller.h" 29 #include "chrome/browser/autocomplete/autocomplete_controller.h"
28 #include "chrome/browser/autocomplete/autocomplete_match.h" 30 #include "chrome/browser/autocomplete/autocomplete_match.h"
29 #include "chrome/browser/autocomplete/autocomplete_result.h" 31 #include "chrome/browser/autocomplete/autocomplete_result.h"
30 #include "chrome/browser/autofill/autofill_manager.h" 32 #include "chrome/browser/autofill/autofill_manager.h"
31 #include "chrome/browser/autofill/credit_card.h" 33 #include "chrome/browser/autofill/credit_card.h"
32 #include "chrome/browser/autofill/personal_data_manager.h" 34 #include "chrome/browser/autofill/personal_data_manager.h"
33 #include "chrome/browser/autofill/personal_data_manager_factory.h" 35 #include "chrome/browser/autofill/personal_data_manager_factory.h"
34 #include "chrome/browser/automation/automation_browser_tracker.h" 36 #include "chrome/browser/automation/automation_browser_tracker.h"
35 #include "chrome/browser/automation/automation_provider_json.h" 37 #include "chrome/browser/automation/automation_provider_json.h"
36 #include "chrome/browser/automation/automation_provider_list.h" 38 #include "chrome/browser/automation/automation_provider_list.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 #include "chrome/browser/protector/protector_service.h" 86 #include "chrome/browser/protector/protector_service.h"
85 #include "chrome/browser/protector/protector_service_factory.h" 87 #include "chrome/browser/protector/protector_service_factory.h"
86 #include "chrome/browser/protector/protector_utils.h" 88 #include "chrome/browser/protector/protector_utils.h"
87 #include "chrome/browser/search_engines/template_url.h" 89 #include "chrome/browser/search_engines/template_url.h"
88 #include "chrome/browser/search_engines/template_url_service.h" 90 #include "chrome/browser/search_engines/template_url_service.h"
89 #include "chrome/browser/search_engines/template_url_service_factory.h" 91 #include "chrome/browser/search_engines/template_url_service_factory.h"
90 #include "chrome/browser/sessions/restore_tab_helper.h" 92 #include "chrome/browser/sessions/restore_tab_helper.h"
91 #include "chrome/browser/sessions/session_service_factory.h" 93 #include "chrome/browser/sessions/session_service_factory.h"
92 #include "chrome/browser/sync/profile_sync_service.h" 94 #include "chrome/browser/sync/profile_sync_service.h"
93 #include "chrome/browser/sync/profile_sync_service_factory.h" 95 #include "chrome/browser/sync/profile_sync_service_factory.h"
94 #include "chrome/browser/tab_contents/confirm_infobar_delegate.h"
95 #include "chrome/browser/tab_contents/link_infobar_delegate.h"
96 #include "chrome/browser/themes/theme_service.h" 96 #include "chrome/browser/themes/theme_service.h"
97 #include "chrome/browser/themes/theme_service_factory.h" 97 #include "chrome/browser/themes/theme_service_factory.h"
98 #include "chrome/browser/translate/translate_infobar_delegate.h" 98 #include "chrome/browser/translate/translate_infobar_delegate.h"
99 #include "chrome/browser/translate/translate_tab_helper.h" 99 #include "chrome/browser/translate/translate_tab_helper.h"
100 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h" 100 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog.h"
101 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h" 101 #include "chrome/browser/ui/app_modal_dialogs/app_modal_dialog_queue.h"
102 #include "chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.h" 102 #include "chrome/browser/ui/app_modal_dialogs/javascript_app_modal_dialog.h"
103 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h" 103 #include "chrome/browser/ui/app_modal_dialogs/native_app_modal_dialog.h"
104 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h" 104 #include "chrome/browser/ui/blocked_content/blocked_content_tab_helper.h"
105 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" 105 #include "chrome/browser/ui/bookmarks/bookmark_bar.h"
(...skipping 7059 matching lines...) Expand 10 before | Expand all | Expand 10 after
7165 void TestingAutomationProvider::OnRemoveProvider() { 7165 void TestingAutomationProvider::OnRemoveProvider() {
7166 if (g_browser_process) 7166 if (g_browser_process)
7167 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); 7167 g_browser_process->GetAutomationProviderList()->RemoveProvider(this);
7168 } 7168 }
7169 7169
7170 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, 7170 void TestingAutomationProvider::EnsureTabSelected(Browser* browser,
7171 WebContents* tab) { 7171 WebContents* tab) {
7172 if (chrome::GetActiveWebContents(browser) != tab) 7172 if (chrome::GetActiveWebContents(browser) != tab)
7173 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); 7173 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true);
7174 } 7174 }
OLDNEW
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/chrome_quota_permission_context.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698