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 362 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
373 base::DictionaryValue* args, | 373 base::DictionaryValue* args, |
374 IPC::Message* reply_message); | 374 IPC::Message* reply_message); |
375 | 375 |
376 // Perform a given action on an existing search engine. | 376 // Perform a given action on an existing search engine. |
377 // Assumes that the profile's template url model is loaded. | 377 // Assumes that the profile's template url model is loaded. |
378 // Uses the JSON interface for input/output. | 378 // Uses the JSON interface for input/output. |
379 void PerformActionOnSearchEngine(Browser* browser, | 379 void PerformActionOnSearchEngine(Browser* browser, |
380 base::DictionaryValue* args, | 380 base::DictionaryValue* args, |
381 IPC::Message* reply_message); | 381 IPC::Message* reply_message); |
382 | 382 |
383 #if defined(ENABLE_PROTECTOR_SERVICE) | |
384 // Get ProtectorService state. | |
385 // Uses the JSON interface for input/output. | |
386 void GetProtectorState(Browser* browser, | |
387 base::DictionaryValue* args, | |
388 IPC::Message* reply_message); | |
389 | |
390 // Perform a given action on the ProtectorService. | |
391 // Uses the JSON interface for input/output. | |
392 void PerformProtectorAction(Browser* browser, | |
393 base::DictionaryValue* args, | |
394 IPC::Message* reply_message); | |
395 #endif | |
396 | |
397 // Get info about preferences stored in Local State. | 383 // Get info about preferences stored in Local State. |
398 // Uses the JSON interface for input/output. | 384 // Uses the JSON interface for input/output. |
399 void GetLocalStatePrefsInfo(base::DictionaryValue* args, | 385 void GetLocalStatePrefsInfo(base::DictionaryValue* args, |
400 IPC::Message* reply_message); | 386 IPC::Message* reply_message); |
401 | 387 |
402 // Set local state prefs. | 388 // Set local state prefs. |
403 // Uses the JSON interface for input/output. | 389 // Uses the JSON interface for input/output. |
404 void SetLocalStatePrefs(base::DictionaryValue* args, | 390 void SetLocalStatePrefs(base::DictionaryValue* args, |
405 IPC::Message* reply_message); | 391 IPC::Message* reply_message); |
406 | 392 |
(...skipping 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1612 scoped_ptr<AutomationEventQueue> automation_event_queue_; | 1598 scoped_ptr<AutomationEventQueue> automation_event_queue_; |
1613 | 1599 |
1614 // List of commands which just finish synchronously and don't require | 1600 // List of commands which just finish synchronously and don't require |
1615 // setting up an observer. | 1601 // setting up an observer. |
1616 static const int kSynchronousCommands[]; | 1602 static const int kSynchronousCommands[]; |
1617 | 1603 |
1618 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1604 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1619 }; | 1605 }; |
1620 | 1606 |
1621 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1607 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |