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 #include "chrome/browser/automation/testing_automation_provider.h" | 5 #include "chrome/browser/automation/testing_automation_provider.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 2069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2080 | 2080 |
2081 handler_map["LockScreen"] = &TestingAutomationProvider::LockScreen; | 2081 handler_map["LockScreen"] = &TestingAutomationProvider::LockScreen; |
2082 handler_map["UnlockScreen"] = &TestingAutomationProvider::UnlockScreen; | 2082 handler_map["UnlockScreen"] = &TestingAutomationProvider::UnlockScreen; |
2083 handler_map["SignoutInScreenLocker"] = | 2083 handler_map["SignoutInScreenLocker"] = |
2084 &TestingAutomationProvider::SignoutInScreenLocker; | 2084 &TestingAutomationProvider::SignoutInScreenLocker; |
2085 | 2085 |
2086 handler_map["GetBatteryInfo"] = &TestingAutomationProvider::GetBatteryInfo; | 2086 handler_map["GetBatteryInfo"] = &TestingAutomationProvider::GetBatteryInfo; |
2087 | 2087 |
2088 handler_map["GetNetworkInfo"] = &TestingAutomationProvider::GetNetworkInfo; | 2088 handler_map["GetNetworkInfo"] = &TestingAutomationProvider::GetNetworkInfo; |
2089 handler_map["NetworkScan"] = &TestingAutomationProvider::NetworkScan; | 2089 handler_map["NetworkScan"] = &TestingAutomationProvider::NetworkScan; |
| 2090 handler_map["GetProxySettings"] = |
| 2091 &TestingAutomationProvider::GetProxySettings; |
| 2092 handler_map["SetProxySetting"] = |
| 2093 &TestingAutomationProvider::SetProxySetting; |
2090 handler_map["ConnectToWifiNetwork"] = | 2094 handler_map["ConnectToWifiNetwork"] = |
2091 &TestingAutomationProvider::ConnectToWifiNetwork; | 2095 &TestingAutomationProvider::ConnectToWifiNetwork; |
2092 handler_map["DisconnectFromWifiNetwork"] = | 2096 handler_map["DisconnectFromWifiNetwork"] = |
2093 &TestingAutomationProvider::DisconnectFromWifiNetwork; | 2097 &TestingAutomationProvider::DisconnectFromWifiNetwork; |
2094 #endif // defined(OS_CHROMEOS) | 2098 #endif // defined(OS_CHROMEOS) |
2095 | 2099 |
2096 std::map<std::string, BrowserJsonHandler> browser_handler_map; | 2100 std::map<std::string, BrowserJsonHandler> browser_handler_map; |
2097 browser_handler_map["DisablePlugin"] = | 2101 browser_handler_map["DisablePlugin"] = |
2098 &TestingAutomationProvider::DisablePlugin; | 2102 &TestingAutomationProvider::DisablePlugin; |
2099 browser_handler_map["EnablePlugin"] = | 2103 browser_handler_map["EnablePlugin"] = |
(...skipping 3242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5342 // If you change this, update Observer for NotificationType::SESSION_END | 5346 // If you change this, update Observer for NotificationType::SESSION_END |
5343 // below. | 5347 // below. |
5344 MessageLoop::current()->PostTask(FROM_HERE, | 5348 MessageLoop::current()->PostTask(FROM_HERE, |
5345 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); | 5349 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); |
5346 } | 5350 } |
5347 } | 5351 } |
5348 | 5352 |
5349 void TestingAutomationProvider::OnRemoveProvider() { | 5353 void TestingAutomationProvider::OnRemoveProvider() { |
5350 AutomationProviderList::GetInstance()->RemoveProvider(this); | 5354 AutomationProviderList::GetInstance()->RemoveProvider(this); |
5351 } | 5355 } |
OLD | NEW |