OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 | 7 |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 20 matching lines...) Expand all Loading... |
31 | 31 |
32 class CreditCard; | 32 class CreditCard; |
33 | 33 |
34 namespace base { | 34 namespace base { |
35 class DictionaryValue; | 35 class DictionaryValue; |
36 } | 36 } |
37 | 37 |
38 namespace content { | 38 namespace content { |
39 class RenderViewHost; | 39 class RenderViewHost; |
40 struct NativeWebKeyboardEvent; | 40 struct NativeWebKeyboardEvent; |
| 41 struct WebPluginInfo; |
41 } | 42 } |
42 | 43 |
43 namespace gfx { | 44 namespace gfx { |
44 class Rect; | 45 class Rect; |
45 } | 46 } |
46 | 47 |
47 namespace webkit { | |
48 struct WebPluginInfo; | |
49 } | |
50 | |
51 // This is an automation provider containing testing calls. | 48 // This is an automation provider containing testing calls. |
52 class TestingAutomationProvider : public AutomationProvider, | 49 class TestingAutomationProvider : public AutomationProvider, |
53 public chrome::BrowserListObserver, | 50 public chrome::BrowserListObserver, |
54 #if defined(OS_CHROMEOS) | 51 #if defined(OS_CHROMEOS) |
55 public chromeos::PowerManagerClient::Observer, | 52 public chromeos::PowerManagerClient::Observer, |
56 #endif | 53 #endif |
57 public content::NotificationObserver { | 54 public content::NotificationObserver { |
58 public: | 55 public: |
59 explicit TestingAutomationProvider(Profile* profile); | 56 explicit TestingAutomationProvider(Profile* profile); |
60 | 57 |
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 IPC::Message* reply_message); | 392 IPC::Message* reply_message); |
396 | 393 |
397 // Get info about plugins. | 394 // Get info about plugins. |
398 // Uses the JSON interface for input/output. | 395 // Uses the JSON interface for input/output. |
399 void GetPluginsInfo(Browser* browser, | 396 void GetPluginsInfo(Browser* browser, |
400 base::DictionaryValue* args, | 397 base::DictionaryValue* args, |
401 IPC::Message* reply_message); | 398 IPC::Message* reply_message); |
402 void GetPluginsInfoCallback(Browser* browser, | 399 void GetPluginsInfoCallback(Browser* browser, |
403 base::DictionaryValue* args, | 400 base::DictionaryValue* args, |
404 IPC::Message* reply_message, | 401 IPC::Message* reply_message, |
405 const std::vector<webkit::WebPluginInfo>& plugins); | 402 const std::vector<content::WebPluginInfo>& plugins); |
406 | 403 |
407 // Enable a plugin. | 404 // Enable a plugin. |
408 // Uses the JSON interface for input/output. | 405 // Uses the JSON interface for input/output. |
409 void EnablePlugin(Browser* browser, | 406 void EnablePlugin(Browser* browser, |
410 base::DictionaryValue* args, | 407 base::DictionaryValue* args, |
411 IPC::Message* reply_message); | 408 IPC::Message* reply_message); |
412 | 409 |
413 // Disable a plugin. | 410 // Disable a plugin. |
414 // Uses the JSON interface for input/output. | 411 // Uses the JSON interface for input/output. |
415 void DisablePlugin(Browser* browser, | 412 void DisablePlugin(Browser* browser, |
(...skipping 1028 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1444 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1441 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
1445 | 1442 |
1446 // List of commands which just finish synchronously and don't require | 1443 // List of commands which just finish synchronously and don't require |
1447 // setting up an observer. | 1444 // setting up an observer. |
1448 static const int kSynchronousCommands[]; | 1445 static const int kSynchronousCommands[]; |
1449 | 1446 |
1450 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1447 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1451 }; | 1448 }; |
1452 | 1449 |
1453 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1450 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |