OLD | NEW |
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> |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 #include "chrome/common/automation_constants.h" | 125 #include "chrome/common/automation_constants.h" |
126 #include "chrome/common/automation_events.h" | 126 #include "chrome/common/automation_events.h" |
127 #include "chrome/common/automation_id.h" | 127 #include "chrome/common/automation_id.h" |
128 #include "chrome/common/automation_messages.h" | 128 #include "chrome/common/automation_messages.h" |
129 #include "chrome/common/chrome_constants.h" | 129 #include "chrome/common/chrome_constants.h" |
130 #include "chrome/common/chrome_notification_types.h" | 130 #include "chrome/common/chrome_notification_types.h" |
131 #include "chrome/common/chrome_paths.h" | 131 #include "chrome/common/chrome_paths.h" |
132 #include "chrome/common/chrome_switches.h" | 132 #include "chrome/common/chrome_switches.h" |
133 #include "chrome/common/extensions/extension.h" | 133 #include "chrome/common/extensions/extension.h" |
134 #include "chrome/common/extensions/extension_action.h" | 134 #include "chrome/common/extensions/extension_action.h" |
| 135 #include "chrome/common/extensions/permissions/permission_set.h" |
135 #include "chrome/common/extensions/url_pattern.h" | 136 #include "chrome/common/extensions/url_pattern.h" |
136 #include "chrome/common/extensions/url_pattern_set.h" | 137 #include "chrome/common/extensions/url_pattern_set.h" |
137 #include "chrome/common/pref_names.h" | 138 #include "chrome/common/pref_names.h" |
138 #include "chrome/common/render_messages.h" | 139 #include "chrome/common/render_messages.h" |
139 #include "chrome/common/url_constants.h" | 140 #include "chrome/common/url_constants.h" |
140 #include "content/public/browser/browser_child_process_host_iterator.h" | 141 #include "content/public/browser/browser_child_process_host_iterator.h" |
141 #include "content/public/browser/child_process_data.h" | 142 #include "content/public/browser/child_process_data.h" |
142 #include "content/public/browser/favicon_status.h" | 143 #include "content/public/browser/favicon_status.h" |
143 #include "content/public/browser/geolocation.h" | 144 #include "content/public/browser/geolocation.h" |
144 #include "content/public/browser/interstitial_page.h" | 145 #include "content/public/browser/interstitial_page.h" |
(...skipping 7031 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
7176 void TestingAutomationProvider::OnRemoveProvider() { | 7177 void TestingAutomationProvider::OnRemoveProvider() { |
7177 if (g_browser_process) | 7178 if (g_browser_process) |
7178 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); | 7179 g_browser_process->GetAutomationProviderList()->RemoveProvider(this); |
7179 } | 7180 } |
7180 | 7181 |
7181 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, | 7182 void TestingAutomationProvider::EnsureTabSelected(Browser* browser, |
7182 WebContents* tab) { | 7183 WebContents* tab) { |
7183 if (chrome::GetActiveWebContents(browser) != tab) | 7184 if (chrome::GetActiveWebContents(browser) != tab) |
7184 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); | 7185 chrome::ActivateTabAt(browser, chrome::GetIndexOfTab(browser, tab), true); |
7185 } | 7186 } |
OLD | NEW |