OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 5 #ifndef CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 6 #define CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <string> | 9 #include <string> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 13 #include "base/memory/scoped_ptr.h" |
14 #include "chrome/browser/automation/automation_provider.h" | 14 #include "chrome/browser/automation/automation_provider.h" |
15 #include "chrome/browser/automation/automation_provider_json.h" | 15 #include "chrome/browser/automation/automation_provider_json.h" |
16 #include "chrome/browser/history/history.h" | 16 #include "chrome/browser/history/history.h" |
17 #include "chrome/browser/importer/importer_list_observer.h" | 17 #include "chrome/browser/importer/importer_list_observer.h" |
18 #include "chrome/browser/sync/profile_sync_service_harness.h" | 18 #include "chrome/browser/sync/profile_sync_service_harness.h" |
19 #include "chrome/browser/ui/browser_list.h" | 19 #include "chrome/browser/ui/browser_list.h" |
20 #include "content/common/notification_registrar.h" | 20 #include "content/common/notification_registrar.h" |
21 #include "content/common/page_type.h" | 21 #include "content/common/page_type.h" |
22 #include "net/base/cert_status_flags.h" | |
23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
24 | 23 |
25 class ImporterList; | 24 class ImporterList; |
26 class TemplateURLService; | 25 class TemplateURLService; |
27 | 26 |
28 namespace base { | 27 namespace base { |
29 class DictionaryValue; | 28 class DictionaryValue; |
30 } | 29 } |
31 | 30 |
32 // This is an automation provider containing testing calls. | 31 // This is an automation provider containing testing calls. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 int* browser_handle); | 189 int* browser_handle); |
191 | 190 |
192 void ShowInterstitialPage(int tab_handle, | 191 void ShowInterstitialPage(int tab_handle, |
193 const std::string& html_text, | 192 const std::string& html_text, |
194 IPC::Message* reply_message); | 193 IPC::Message* reply_message); |
195 void HideInterstitialPage(int tab_handle, bool* success); | 194 void HideInterstitialPage(int tab_handle, bool* success); |
196 | 195 |
197 void WaitForTabToBeRestored(int tab_handle, IPC::Message* reply_message); | 196 void WaitForTabToBeRestored(int tab_handle, IPC::Message* reply_message); |
198 | 197 |
199 // Gets the security state for the tab associated to the specified |handle|. | 198 // Gets the security state for the tab associated to the specified |handle|. |
200 void GetSecurityState(int handle, | 199 void GetSecurityState(int handle, bool* success, |
201 bool* success, | 200 SecurityStyle* security_style, int* ssl_cert_status, |
202 SecurityStyle* security_style, | |
203 net::CertStatus* ssl_cert_status, | |
204 int* insecure_content_status); | 201 int* insecure_content_status); |
205 | 202 |
206 // Gets the page type for the tab associated to the specified |handle|. | 203 // Gets the page type for the tab associated to the specified |handle|. |
207 void GetPageType(int handle, bool* success, PageType* page_type); | 204 void GetPageType(int handle, bool* success, PageType* page_type); |
208 | 205 |
209 // Gets the duration in ms of the last event matching |event_name|. | 206 // Gets the duration in ms of the last event matching |event_name|. |
210 // |duration_ms| is -1 if the event hasn't occurred yet. | 207 // |duration_ms| is -1 if the event hasn't occurred yet. |
211 void GetMetricEventDuration(const std::string& event_name, int* duration_ms); | 208 void GetMetricEventDuration(const std::string& event_name, int* duration_ms); |
212 | 209 |
213 // Simulates an action on the SSL blocking page at the tab specified by | 210 // Simulates an action on the SSL blocking page at the tab specified by |
(...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1345 // Used to enumerate browser profiles. | 1342 // Used to enumerate browser profiles. |
1346 scoped_refptr<ImporterList> importer_list_; | 1343 scoped_refptr<ImporterList> importer_list_; |
1347 | 1344 |
1348 // The stored data for the ImportSettings operation. | 1345 // The stored data for the ImportSettings operation. |
1349 ImportSettingsData import_settings_data_; | 1346 ImportSettingsData import_settings_data_; |
1350 | 1347 |
1351 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1348 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1352 }; | 1349 }; |
1353 | 1350 |
1354 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1351 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |