Chromium Code Reviews| Index: chrome/browser/automation/testing_automation_provider.h |
| diff --git a/chrome/browser/automation/testing_automation_provider.h b/chrome/browser/automation/testing_automation_provider.h |
| index 9c8877b573b001892feb2eb9d5fd2a7b67a9f1f1..314be132edd5a04ebf3934d030b7951bbe1431fb 100644 |
| --- a/chrome/browser/automation/testing_automation_provider.h |
| +++ b/chrome/browser/automation/testing_automation_provider.h |
| @@ -13,6 +13,7 @@ |
| #include "base/memory/scoped_ptr.h" |
| #include "chrome/browser/automation/automation_provider.h" |
| #include "chrome/browser/automation/automation_provider_json.h" |
| +#include "chrome/browser/chromeos/cros/power_library.h" |
|
satorux1
2011/10/20 04:32:40
Hmm, testing_automation_provider.h seems to be sha
Simon Que
2011/10/20 21:18:53
Done.
|
| #include "chrome/browser/history/history.h" |
| #include "chrome/browser/importer/importer_list_observer.h" |
| #include "chrome/browser/sync/profile_sync_service_harness.h" |
| @@ -37,7 +38,9 @@ struct WebPluginInfo; |
| class TestingAutomationProvider : public AutomationProvider, |
| public BrowserList::Observer, |
| public importer::ImporterListObserver, |
| - public content::NotificationObserver { |
| + public content::NotificationObserver, |
| + public chromeos::PowerLibrary::Observer { |
| + |
| public: |
| explicit TestingAutomationProvider(Profile* profile); |
| @@ -47,6 +50,9 @@ class TestingAutomationProvider : public AutomationProvider, |
| virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
| virtual void OnChannelError() OVERRIDE; |
| + virtual void PowerChanged(const chromeos::PowerSupplyStatus& status) OVERRIDE; |
| + virtual void SystemResumed() OVERRIDE {} |
| + |
| private: |
| class PopupMenuWaiter; |
| @@ -1410,6 +1416,9 @@ class TestingAutomationProvider : public AutomationProvider, |
| // The stored data for the ImportSettings operation. |
| ImportSettingsData import_settings_data_; |
| + // Last reported power status. |
| + chromeos::PowerSupplyStatus power_status_; |
| + |
| DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
| }; |