| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 // This implements a browser-side endpoint for UI automation activity. | 5 // This implements a browser-side endpoint for UI automation activity. |
| 6 // The client-side endpoint is implemented by AutomationProxy. | 6 // The client-side endpoint is implemented by AutomationProxy. |
| 7 // The entire lifetime of this object should be contained within that of | 7 // The entire lifetime of this object should be contained within that of |
| 8 // the BrowserProcess, and in particular the NotificationService that's | 8 // the BrowserProcess, and in particular the NotificationService that's |
| 9 // hung off of it. | 9 // hung off of it. |
| 10 | 10 |
| (...skipping 380 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 IPC::Message* reply_message); | 391 IPC::Message* reply_message); |
| 392 | 392 |
| 393 void LoadExpandedExtension(const FilePath& extension_dir, | 393 void LoadExpandedExtension(const FilePath& extension_dir, |
| 394 IPC::Message* reply_message); | 394 IPC::Message* reply_message); |
| 395 | 395 |
| 396 void GetEnabledExtensions(std::vector<FilePath>* result); | 396 void GetEnabledExtensions(std::vector<FilePath>* result); |
| 397 | 397 |
| 398 void WaitForExtensionTestResult(IPC::Message* reply_message); | 398 void WaitForExtensionTestResult(IPC::Message* reply_message); |
| 399 | 399 |
| 400 void InstallExtensionAndGetHandle(const FilePath& crx_path, | 400 void InstallExtensionAndGetHandle(const FilePath& crx_path, |
| 401 bool with_ui, |
| 401 IPC::Message* reply_message); | 402 IPC::Message* reply_message); |
| 402 | 403 |
| 403 void UninstallExtension(int extension_handle, | 404 void UninstallExtension(int extension_handle, |
| 404 bool* success); | 405 bool* success); |
| 405 | 406 |
| 406 void ReloadExtension(int extension_handle, | 407 void ReloadExtension(int extension_handle, |
| 407 IPC::Message* reply_message); | 408 IPC::Message* reply_message); |
| 408 | 409 |
| 409 void EnableExtension(int extension_handle, | 410 void EnableExtension(int extension_handle, |
| 410 IPC::Message* reply_message); | 411 IPC::Message* reply_message); |
| (...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 553 const std::wstring& name, | 554 const std::wstring& name, |
| 554 bool* success, | 555 bool* success, |
| 555 bool* value); | 556 bool* value); |
| 556 | 557 |
| 557 // Sets the bool value for preference with name |name|. | 558 // Sets the bool value for preference with name |name|. |
| 558 void SetBooleanPreference(int handle, | 559 void SetBooleanPreference(int handle, |
| 559 const std::wstring& name, | 560 const std::wstring& name, |
| 560 bool value, | 561 bool value, |
| 561 bool* success); | 562 bool* success); |
| 562 | 563 |
| 564 // Resets to the default theme. |
| 565 void ResetToDefaultTheme(); |
| 566 |
| 563 // Gets the current used encoding name of the page in the specified tab. | 567 // Gets the current used encoding name of the page in the specified tab. |
| 564 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding); | 568 void GetPageCurrentEncoding(int tab_handle, std::string* current_encoding); |
| 565 | 569 |
| 566 // Uses the specified encoding to override the encoding of the page in the | 570 // Uses the specified encoding to override the encoding of the page in the |
| 567 // specified tab. | 571 // specified tab. |
| 568 void OverrideEncoding(int tab_handle, | 572 void OverrideEncoding(int tab_handle, |
| 569 const std::string& encoding_name, | 573 const std::string& encoding_name, |
| 570 bool* success); | 574 bool* success); |
| 571 | 575 |
| 572 void SavePackageShouldPromptUser(bool should_prompt); | 576 void SavePackageShouldPromptUser(bool should_prompt); |
| (...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 741 virtual void Observe(NotificationType type, | 745 virtual void Observe(NotificationType type, |
| 742 const NotificationSource& source, | 746 const NotificationSource& source, |
| 743 const NotificationDetails& details); | 747 const NotificationDetails& details); |
| 744 | 748 |
| 745 void OnRemoveProvider(); // Called via PostTask | 749 void OnRemoveProvider(); // Called via PostTask |
| 746 | 750 |
| 747 NotificationRegistrar registrar_; | 751 NotificationRegistrar registrar_; |
| 748 }; | 752 }; |
| 749 | 753 |
| 750 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 754 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |