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" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
23 | 24 |
24 class ImporterList; | 25 class ImporterList; |
25 class TemplateURLService; | 26 class TemplateURLService; |
26 | 27 |
27 namespace base { | 28 namespace base { |
28 class DictionaryValue; | 29 class DictionaryValue; |
29 } | 30 } |
30 | 31 |
31 // This is an automation provider containing testing calls. | 32 // This is an automation provider containing testing calls. |
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
189 int* browser_handle); | 190 int* browser_handle); |
190 | 191 |
191 void ShowInterstitialPage(int tab_handle, | 192 void ShowInterstitialPage(int tab_handle, |
192 const std::string& html_text, | 193 const std::string& html_text, |
193 IPC::Message* reply_message); | 194 IPC::Message* reply_message); |
194 void HideInterstitialPage(int tab_handle, bool* success); | 195 void HideInterstitialPage(int tab_handle, bool* success); |
195 | 196 |
196 void WaitForTabToBeRestored(int tab_handle, IPC::Message* reply_message); | 197 void WaitForTabToBeRestored(int tab_handle, IPC::Message* reply_message); |
197 | 198 |
198 // Gets the security state for the tab associated to the specified |handle|. | 199 // Gets the security state for the tab associated to the specified |handle|. |
199 void GetSecurityState(int handle, bool* success, | 200 void GetSecurityState(int handle, |
200 SecurityStyle* security_style, int* ssl_cert_status, | 201 bool* success, |
| 202 SecurityStyle* security_style, |
| 203 net::CertStatus* ssl_cert_status, |
201 int* insecure_content_status); | 204 int* insecure_content_status); |
202 | 205 |
203 // Gets the page type for the tab associated to the specified |handle|. | 206 // Gets the page type for the tab associated to the specified |handle|. |
204 void GetPageType(int handle, bool* success, PageType* page_type); | 207 void GetPageType(int handle, bool* success, PageType* page_type); |
205 | 208 |
206 // Gets the duration in ms of the last event matching |event_name|. | 209 // Gets the duration in ms of the last event matching |event_name|. |
207 // |duration_ms| is -1 if the event hasn't occurred yet. | 210 // |duration_ms| is -1 if the event hasn't occurred yet. |
208 void GetMetricEventDuration(const std::string& event_name, int* duration_ms); | 211 void GetMetricEventDuration(const std::string& event_name, int* duration_ms); |
209 | 212 |
210 // Simulates an action on the SSL blocking page at the tab specified by | 213 // 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... |
1342 // Used to enumerate browser profiles. | 1345 // Used to enumerate browser profiles. |
1343 scoped_refptr<ImporterList> importer_list_; | 1346 scoped_refptr<ImporterList> importer_list_; |
1344 | 1347 |
1345 // The stored data for the ImportSettings operation. | 1348 // The stored data for the ImportSettings operation. |
1346 ImportSettingsData import_settings_data_; | 1349 ImportSettingsData import_settings_data_; |
1347 | 1350 |
1348 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1351 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1349 }; | 1352 }; |
1350 | 1353 |
1351 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1354 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |