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 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 1362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1373 IPC::Message* reply_message); | 1373 IPC::Message* reply_message); |
1374 | 1374 |
1375 // Creates a new |TestingAutomationProvider| that opens a server channel | 1375 // Creates a new |TestingAutomationProvider| that opens a server channel |
1376 // for the given |channel_id|. | 1376 // for the given |channel_id|. |
1377 // The server channel will be available for connection when this returns. | 1377 // The server channel will be available for connection when this returns. |
1378 // Example: | 1378 // Example: |
1379 // input: { "channel_id": "testChannel123" } | 1379 // input: { "channel_id": "testChannel123" } |
1380 void CreateNewAutomationProvider(base::DictionaryValue* args, | 1380 void CreateNewAutomationProvider(base::DictionaryValue* args, |
1381 IPC::Message* reply_message); | 1381 IPC::Message* reply_message); |
1382 | 1382 |
1383 // Enforces the policies in |args|. The policies are provided as a dictionary | |
1384 // of policy names to their values. The top-level dictionary maps the policy | |
1385 // provider level to its dictionary. | |
1386 // Example: | |
1387 // input: { "managed_platform": { | |
1388 // "ShowHomeButton": true, | |
1389 // "SafeBrowsingEnabled": false, | |
1390 // }, | |
1391 // "recommended_platform": { | |
1392 // ... | |
1393 // }, | |
1394 // "managed_cloud": { | |
1395 // ... | |
1396 // }, | |
1397 // "recommended_cloud": { | |
1398 // ... | |
1399 // } | |
1400 // } | |
1401 // output: none | |
1402 void SetPolicies(base::DictionaryValue* args, | |
1403 IPC::Message* reply_message); | |
1404 | |
1405 // Gets a list of supported policies. The output is a map of policy name to | 1383 // Gets a list of supported policies. The output is a map of policy name to |
1406 // its value type. | 1384 // its value type. |
1407 // Example: | 1385 // Example: |
1408 // input: none | 1386 // input: none |
1409 // output: { "ShowHomeButton": "bool", | 1387 // output: { "ShowHomeButton": "bool", |
1410 // "DefaultSearchProviderSearchURL": "str" | 1388 // "DefaultSearchProviderSearchURL": "str" |
1411 // } | 1389 // } |
1412 void GetPolicyDefinitionList(base::DictionaryValue* args, | 1390 void GetPolicyDefinitionList(base::DictionaryValue* args, |
1413 IPC::Message* reply_message); | 1391 IPC::Message* reply_message); |
1414 | 1392 |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1593 ImportSettingsData import_settings_data_; | 1571 ImportSettingsData import_settings_data_; |
1594 | 1572 |
1595 // The automation event observer queue. It is lazily created when an observer | 1573 // The automation event observer queue. It is lazily created when an observer |
1596 // is added to avoid overhead when not needed. | 1574 // is added to avoid overhead when not needed. |
1597 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1575 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
1598 | 1576 |
1599 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1577 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1600 }; | 1578 }; |
1601 | 1579 |
1602 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1580 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |