| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 class CreditCard; | 49 class CreditCard; |
| 50 class DictionaryValue; | 50 class DictionaryValue; |
| 51 class Extension; | 51 class Extension; |
| 52 class ExtensionPortContainer; | 52 class ExtensionPortContainer; |
| 53 class ExtensionTestResultNotificationObserver; | 53 class ExtensionTestResultNotificationObserver; |
| 54 class ExternalTabContainer; | 54 class ExternalTabContainer; |
| 55 class LoginHandler; | 55 class LoginHandler; |
| 56 class MetricEventDurationObserver; | 56 class MetricEventDurationObserver; |
| 57 class InitialLoadObserver; | 57 class InitialLoadObserver; |
| 58 class NavigationControllerRestoredObserver; | 58 class NavigationControllerRestoredObserver; |
| 59 class TranslateInfoBarDelegate; |
| 59 struct AutocompleteMatchData; | 60 struct AutocompleteMatchData; |
| 60 | 61 |
| 61 namespace gfx { | 62 namespace gfx { |
| 62 class Point; | 63 class Point; |
| 63 } | 64 } |
| 64 | 65 |
| 65 class AutomationProvider : public base::RefCounted<AutomationProvider>, | 66 class AutomationProvider : public base::RefCounted<AutomationProvider>, |
| 66 public IPC::Channel::Listener, | 67 public IPC::Channel::Listener, |
| 67 public IPC::Message::Sender { | 68 public IPC::Message::Sender { |
| 68 public: | 69 public: |
| (...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 485 void ClearBrowsingData(Browser* browser, | 486 void ClearBrowsingData(Browser* browser, |
| 486 DictionaryValue* args, | 487 DictionaryValue* args, |
| 487 IPC::Message* reply_message); | 488 IPC::Message* reply_message); |
| 488 | 489 |
| 489 // Get info about theme. | 490 // Get info about theme. |
| 490 // Uses the JSON interface for input/output. | 491 // Uses the JSON interface for input/output. |
| 491 void GetThemeInfo(Browser* browser, | 492 void GetThemeInfo(Browser* browser, |
| 492 DictionaryValue* args, | 493 DictionaryValue* args, |
| 493 IPC::Message* reply_message); | 494 IPC::Message* reply_message); |
| 494 | 495 |
| 496 // Returns information about translation for a given tab. Includes |
| 497 // information about the translate bar if it is showing. |
| 498 void GetTranslateInfo(Browser* browser, |
| 499 DictionaryValue* args, |
| 500 IPC::Message* reply_message); |
| 501 |
| 502 // Takes the specified action on the translate bar. |
| 503 // Uses the JSON interface for input/output. |
| 504 void SelectTranslateOption(Browser* browser, |
| 505 DictionaryValue* args, |
| 506 IPC::Message* reply_message); |
| 507 |
| 495 // Get the profiles that are currently saved to the DB. | 508 // Get the profiles that are currently saved to the DB. |
| 496 // Uses the JSON interface for input/output. | 509 // Uses the JSON interface for input/output. |
| 497 void GetAutoFillProfile(Browser* browser, | 510 void GetAutoFillProfile(Browser* browser, |
| 498 DictionaryValue* args, | 511 DictionaryValue* args, |
| 499 IPC::Message* reply_message); | 512 IPC::Message* reply_message); |
| 500 | 513 |
| 501 // Fill in an AutoFillProfile with the given profile information. | 514 // Fill in an AutoFillProfile with the given profile information. |
| 502 // Uses the JSON interface for input/output. | 515 // Uses the JSON interface for input/output. |
| 503 void FillAutoFillProfile(Browser* browser, | 516 void FillAutoFillProfile(Browser* browser, |
| 504 DictionaryValue* args, | 517 DictionaryValue* args, |
| (...skipping 445 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 950 virtual void Observe(NotificationType type, | 963 virtual void Observe(NotificationType type, |
| 951 const NotificationSource& source, | 964 const NotificationSource& source, |
| 952 const NotificationDetails& details); | 965 const NotificationDetails& details); |
| 953 | 966 |
| 954 void OnRemoveProvider(); // Called via PostTask | 967 void OnRemoveProvider(); // Called via PostTask |
| 955 | 968 |
| 956 NotificationRegistrar registrar_; | 969 NotificationRegistrar registrar_; |
| 957 }; | 970 }; |
| 958 | 971 |
| 959 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ | 972 #endif // CHROME_BROWSER_AUTOMATION_AUTOMATION_PROVIDER_H_ |
| OLD | NEW |