| 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 #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 1355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1366 IPC::Message* reply_message); | 1366 IPC::Message* reply_message); |
| 1367 | 1367 |
| 1368 // Creates a new |TestingAutomationProvider| that opens a server channel | 1368 // Creates a new |TestingAutomationProvider| that opens a server channel |
| 1369 // for the given |channel_id|. | 1369 // for the given |channel_id|. |
| 1370 // The server channel will be available for connection when this returns. | 1370 // The server channel will be available for connection when this returns. |
| 1371 // Example: | 1371 // Example: |
| 1372 // input: { "channel_id": "testChannel123" } | 1372 // input: { "channel_id": "testChannel123" } |
| 1373 void CreateNewAutomationProvider(base::DictionaryValue* args, | 1373 void CreateNewAutomationProvider(base::DictionaryValue* args, |
| 1374 IPC::Message* reply_message); | 1374 IPC::Message* reply_message); |
| 1375 | 1375 |
| 1376 // Gets a list of supported policies. The output is a map of policy name to | |
| 1377 // its value type. | |
| 1378 // Example: | |
| 1379 // input: none | |
| 1380 // output: { "ShowHomeButton": "bool", | |
| 1381 // "DefaultSearchProviderSearchURL": "str" | |
| 1382 // } | |
| 1383 void GetPolicyDefinitionList(base::DictionaryValue* args, | |
| 1384 IPC::Message* reply_message); | |
| 1385 | |
| 1386 // Triggers a policy update on the platform and cloud providers, if they | 1376 // Triggers a policy update on the platform and cloud providers, if they |
| 1387 // exist. Returns after the update notifications are received. | 1377 // exist. Returns after the update notifications are received. |
| 1388 // Example: | 1378 // Example: |
| 1389 // input: none | 1379 // input: none |
| 1390 // output: none | 1380 // output: none |
| 1391 void RefreshPolicies(base::DictionaryValue* args, | 1381 void RefreshPolicies(base::DictionaryValue* args, |
| 1392 IPC::Message* reply_message); | 1382 IPC::Message* reply_message); |
| 1393 | 1383 |
| 1394 // Simulates a memory bug (reference an array out of bounds) to cause Address | 1384 // Simulates a memory bug (reference an array out of bounds) to cause Address |
| 1395 // Sanitizer (if it was built it) to catch the bug and abort the process. | 1385 // Sanitizer (if it was built it) to catch the bug and abort the process. |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1628 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1618 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
| 1629 | 1619 |
| 1630 // List of commands which just finish synchronously and don't require | 1620 // List of commands which just finish synchronously and don't require |
| 1631 // setting up an observer. | 1621 // setting up an observer. |
| 1632 static const int kSynchronousCommands[]; | 1622 static const int kSynchronousCommands[]; |
| 1633 | 1623 |
| 1634 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1624 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| 1635 }; | 1625 }; |
| 1636 | 1626 |
| 1637 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1627 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |