Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(189)

Side by Side Diff: chrome/browser/automation/testing_automation_provider.cc

Issue 6737035: Proxy settings automation hooks and related proxy settings fixes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix outdated header. Created 9 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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["SetProxySettings"] =
2093 &TestingAutomationProvider::SetProxySettings;
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 3236 matching lines...) Expand 10 before | Expand all | Expand 10 after
5336 // If you change this, update Observer for NotificationType::SESSION_END 5340 // If you change this, update Observer for NotificationType::SESSION_END
5337 // below. 5341 // below.
5338 MessageLoop::current()->PostTask(FROM_HERE, 5342 MessageLoop::current()->PostTask(FROM_HERE,
5339 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider)); 5343 NewRunnableMethod(this, &TestingAutomationProvider::OnRemoveProvider));
5340 } 5344 }
5341 } 5345 }
5342 5346
5343 void TestingAutomationProvider::OnRemoveProvider() { 5347 void TestingAutomationProvider::OnRemoveProvider() {
5344 AutomationProviderList::GetInstance()->RemoveProvider(this); 5348 AutomationProviderList::GetInstance()->RemoveProvider(this);
5345 } 5349 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698