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 #include <vector> |
10 | 11 |
11 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
12 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
13 #include "base/memory/scoped_ptr.h" | 14 #include "base/memory/scoped_ptr.h" |
14 #include "chrome/browser/automation/automation_provider.h" | 15 #include "chrome/browser/automation/automation_provider.h" |
15 #include "chrome/browser/automation/automation_provider_json.h" | 16 #include "chrome/browser/automation/automation_provider_json.h" |
16 #include "chrome/browser/history/history.h" | 17 #include "chrome/browser/history/history.h" |
17 #include "chrome/browser/importer/importer_list_observer.h" | 18 #include "chrome/browser/importer/importer_list_observer.h" |
18 #include "chrome/browser/sync/profile_sync_service_harness.h" | 19 #include "chrome/browser/sync/profile_sync_service_harness.h" |
19 #include "chrome/browser/ui/browser_list.h" | 20 #include "chrome/browser/ui/browser_list.h" |
20 #include "content/common/notification_registrar.h" | 21 #include "content/common/notification_registrar.h" |
21 #include "content/common/page_type.h" | 22 #include "content/common/page_type.h" |
22 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" | 23 #include "third_party/WebKit/Source/WebKit/chromium/public/WebInputEvent.h" |
| 24 #include "webkit/plugins/webplugininfo.h" |
23 | 25 |
24 class ImporterList; | 26 class ImporterList; |
25 class TemplateURLService; | 27 class TemplateURLService; |
26 | 28 |
27 namespace base { | 29 namespace base { |
28 class DictionaryValue; | 30 class DictionaryValue; |
29 } | 31 } |
30 | 32 |
31 // This is an automation provider containing testing calls. | 33 // This is an automation provider containing testing calls. |
32 class TestingAutomationProvider : public AutomationProvider, | 34 class TestingAutomationProvider : public AutomationProvider, |
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
485 // for example response. | 487 // for example response. |
486 void GetInitialLoadTimes(Browser* browser, | 488 void GetInitialLoadTimes(Browser* browser, |
487 base::DictionaryValue* args, | 489 base::DictionaryValue* args, |
488 IPC::Message* reply_message); | 490 IPC::Message* reply_message); |
489 | 491 |
490 // Get info about plugins. | 492 // Get info about plugins. |
491 // Uses the JSON interface for input/output. | 493 // Uses the JSON interface for input/output. |
492 void GetPluginsInfo(Browser* browser, | 494 void GetPluginsInfo(Browser* browser, |
493 base::DictionaryValue* args, | 495 base::DictionaryValue* args, |
494 IPC::Message* reply_message); | 496 IPC::Message* reply_message); |
| 497 void GetPluginsInfoCallback(Browser* browser, |
| 498 base::DictionaryValue* args, |
| 499 IPC::Message* reply_message, |
| 500 const std::vector<webkit::WebPluginInfo>& plugins); |
495 | 501 |
496 // Enable a plugin. | 502 // Enable a plugin. |
497 // Uses the JSON interface for input/output. | 503 // Uses the JSON interface for input/output. |
498 void EnablePlugin(Browser* browser, | 504 void EnablePlugin(Browser* browser, |
499 base::DictionaryValue* args, | 505 base::DictionaryValue* args, |
500 IPC::Message* reply_message); | 506 IPC::Message* reply_message); |
501 | 507 |
502 // Disable a plugin. | 508 // Disable a plugin. |
503 // Uses the JSON interface for input/output. | 509 // Uses the JSON interface for input/output. |
504 void DisablePlugin(Browser* browser, | 510 void DisablePlugin(Browser* browser, |
(...skipping 837 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1342 // Used to enumerate browser profiles. | 1348 // Used to enumerate browser profiles. |
1343 scoped_refptr<ImporterList> importer_list_; | 1349 scoped_refptr<ImporterList> importer_list_; |
1344 | 1350 |
1345 // The stored data for the ImportSettings operation. | 1351 // The stored data for the ImportSettings operation. |
1346 ImportSettingsData import_settings_data_; | 1352 ImportSettingsData import_settings_data_; |
1347 | 1353 |
1348 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1354 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1349 }; | 1355 }; |
1350 | 1356 |
1351 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1357 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |