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 2067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2078 handler_map["GetLoginInfo"] = &TestingAutomationProvider::GetLoginInfo; | 2078 handler_map["GetLoginInfo"] = &TestingAutomationProvider::GetLoginInfo; |
2079 handler_map["LoginAsGuest"] = &TestingAutomationProvider::LoginAsGuest; | 2079 handler_map["LoginAsGuest"] = &TestingAutomationProvider::LoginAsGuest; |
2080 handler_map["Login"] = &TestingAutomationProvider::Login; | 2080 handler_map["Login"] = &TestingAutomationProvider::Login; |
2081 | 2081 |
2082 handler_map["LockScreen"] = &TestingAutomationProvider::LockScreen; | 2082 handler_map["LockScreen"] = &TestingAutomationProvider::LockScreen; |
2083 handler_map["UnlockScreen"] = &TestingAutomationProvider::UnlockScreen; | 2083 handler_map["UnlockScreen"] = &TestingAutomationProvider::UnlockScreen; |
2084 handler_map["SignoutInScreenLocker"] = | 2084 handler_map["SignoutInScreenLocker"] = |
2085 &TestingAutomationProvider::SignoutInScreenLocker; | 2085 &TestingAutomationProvider::SignoutInScreenLocker; |
2086 | 2086 |
2087 handler_map["GetNetworkInfo"] = &TestingAutomationProvider::GetNetworkInfo; | 2087 handler_map["GetNetworkInfo"] = &TestingAutomationProvider::GetNetworkInfo; |
| 2088 handler_map["NetworkScan"] = &TestingAutomationProvider::NetworkScan; |
2088 handler_map["ConnectToWifiNetwork"] = | 2089 handler_map["ConnectToWifiNetwork"] = |
2089 &TestingAutomationProvider::ConnectToWifiNetwork; | 2090 &TestingAutomationProvider::ConnectToWifiNetwork; |
| 2091 handler_map["DisconnectFromWifiNetwork"] = |
| 2092 &TestingAutomationProvider::DisconnectFromWifiNetwork; |
2090 #endif // defined(OS_CHROMEOS) | 2093 #endif // defined(OS_CHROMEOS) |
2091 | 2094 |
2092 std::map<std::string, BrowserJsonHandler> browser_handler_map; | 2095 std::map<std::string, BrowserJsonHandler> browser_handler_map; |
2093 browser_handler_map["DisablePlugin"] = | 2096 browser_handler_map["DisablePlugin"] = |
2094 &TestingAutomationProvider::DisablePlugin; | 2097 &TestingAutomationProvider::DisablePlugin; |
2095 browser_handler_map["EnablePlugin"] = | 2098 browser_handler_map["EnablePlugin"] = |
2096 &TestingAutomationProvider::EnablePlugin; | 2099 &TestingAutomationProvider::EnablePlugin; |
2097 browser_handler_map["GetPluginsInfo"] = | 2100 browser_handler_map["GetPluginsInfo"] = |
2098 &TestingAutomationProvider::GetPluginsInfo; | 2101 &TestingAutomationProvider::GetPluginsInfo; |
2099 | 2102 |
(...skipping 3100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5200 // If you change this, update Observer for NotificationType::SESSION_END | 5203 // If you change this, update Observer for NotificationType::SESSION_END |
5201 // below. | 5204 // below. |
5202 MessageLoop::current()->PostTask(FROM_HERE, | 5205 MessageLoop::current()->PostTask(FROM_HERE, |
5203 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); | 5206 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); |
5204 } | 5207 } |
5205 } | 5208 } |
5206 | 5209 |
5207 void TestingAutomationProvider::OnRemoveProvider() { | 5210 void TestingAutomationProvider::OnRemoveProvider() { |
5208 AutomationProviderList::GetInstance()->RemoveProvider(this); | 5211 AutomationProviderList::GetInstance()->RemoveProvider(this); |
5209 } | 5212 } |
OLD | NEW |