OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 9 #include <string> |
10 | 10 |
(...skipping 25 matching lines...) Expand all Loading... |
36 | 36 |
37 namespace webkit { | 37 namespace webkit { |
38 struct WebPluginInfo; | 38 struct WebPluginInfo; |
39 } | 39 } |
40 | 40 |
41 // This is an automation provider containing testing calls. | 41 // This is an automation provider containing testing calls. |
42 class TestingAutomationProvider : public AutomationProvider, | 42 class TestingAutomationProvider : public AutomationProvider, |
43 public BrowserList::Observer, | 43 public BrowserList::Observer, |
44 public importer::ImporterListObserver, | 44 public importer::ImporterListObserver, |
45 #if defined(OS_CHROMEOS) | 45 #if defined(OS_CHROMEOS) |
46 public chromeos::PowerLibrary::Observer, | 46 public chromeos::PowerManagerClient::Observer, |
47 #endif // defined(OS_CHROMEOS) | 47 #endif // defined(OS_CHROMEOS) |
48 public content::NotificationObserver { | 48 public content::NotificationObserver { |
49 | 49 |
50 public: | 50 public: |
51 explicit TestingAutomationProvider(Profile* profile); | 51 explicit TestingAutomationProvider(Profile* profile); |
52 | 52 |
53 virtual IPC::Channel::Mode GetChannelMode(bool use_named_interface); | 53 virtual IPC::Channel::Mode GetChannelMode(bool use_named_interface); |
54 | 54 |
55 // IPC::Channel::Listener: | 55 // IPC::Channel::Listener: |
56 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; | 56 virtual bool OnMessageReceived(const IPC::Message& msg) OVERRIDE; |
(...skipping 1265 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1322 void GetVolumeInfo(base::DictionaryValue* args, IPC::Message* reply_message); | 1322 void GetVolumeInfo(base::DictionaryValue* args, IPC::Message* reply_message); |
1323 | 1323 |
1324 void SetVolume(base::DictionaryValue* args, IPC::Message* reply_message); | 1324 void SetVolume(base::DictionaryValue* args, IPC::Message* reply_message); |
1325 | 1325 |
1326 void SetMute(base::DictionaryValue* args, IPC::Message* reply_message); | 1326 void SetMute(base::DictionaryValue* args, IPC::Message* reply_message); |
1327 | 1327 |
1328 void CaptureProfilePhoto(Browser* browser, | 1328 void CaptureProfilePhoto(Browser* browser, |
1329 DictionaryValue* args, | 1329 DictionaryValue* args, |
1330 IPC::Message* reply_message); | 1330 IPC::Message* reply_message); |
1331 | 1331 |
1332 // chromeos::PowerLibrary::Observer overrides. | 1332 // chromeos::PowerManagerClient::Observer overrides. |
1333 virtual void PowerChanged(const chromeos::PowerSupplyStatus& status) OVERRIDE; | 1333 virtual void PowerChanged(const chromeos::PowerSupplyStatus& status) OVERRIDE; |
1334 virtual void SystemResumed() OVERRIDE {} | |
1335 #endif // defined(OS_CHROMEOS) | 1334 #endif // defined(OS_CHROMEOS) |
1336 | 1335 |
1337 void WaitForTabCountToBecome(int browser_handle, | 1336 void WaitForTabCountToBecome(int browser_handle, |
1338 int target_tab_count, | 1337 int target_tab_count, |
1339 IPC::Message* reply_message); | 1338 IPC::Message* reply_message); |
1340 | 1339 |
1341 void WaitForInfoBarCount(int tab_handle, | 1340 void WaitForInfoBarCount(int tab_handle, |
1342 size_t target_count, | 1341 size_t target_count, |
1343 IPC::Message* reply_message); | 1342 IPC::Message* reply_message); |
1344 | 1343 |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1397 // Used to enumerate browser profiles. | 1396 // Used to enumerate browser profiles. |
1398 scoped_refptr<ImporterList> importer_list_; | 1397 scoped_refptr<ImporterList> importer_list_; |
1399 | 1398 |
1400 // The stored data for the ImportSettings operation. | 1399 // The stored data for the ImportSettings operation. |
1401 ImportSettingsData import_settings_data_; | 1400 ImportSettingsData import_settings_data_; |
1402 | 1401 |
1403 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); | 1402 DISALLOW_COPY_AND_ASSIGN(TestingAutomationProvider); |
1404 }; | 1403 }; |
1405 | 1404 |
1406 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ | 1405 #endif // CHROME_BROWSER_AUTOMATION_TESTING_AUTOMATION_PROVIDER_H_ |
OLD | NEW |