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

Side by Side Diff: chrome/test/automation/automation_proxy.h

Issue 113482: Adding the ability to alter Chrome's proxy settings via the automation interf... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_TEST_AUTOMATION_AUTOMATION_PROXY_H__ 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "app/message_box_flags.h" 10 #include "app/message_box_flags.h"
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 138
139 // Returns the WindowProxy for the currently active window, transferring 139 // Returns the WindowProxy for the currently active window, transferring
140 // ownership of the pointer to the caller. 140 // ownership of the pointer to the caller.
141 // On failure, returns NULL. 141 // On failure, returns NULL.
142 WindowProxy* GetActiveWindow(); 142 WindowProxy* GetActiveWindow();
143 143
144 // Tells the browser to enable or disable network request filtering. Returns 144 // Tells the browser to enable or disable network request filtering. Returns
145 // false if the message fails to send to the browser. 145 // false if the message fails to send to the browser.
146 bool SetFilteredInet(bool enabled); 146 bool SetFilteredInet(bool enabled);
147 147
148 // Sends the browser a new proxy configuration to start using. Returns true
149 // if the proxy config was successfully sent, false otherwise.
150 bool SendProxyConfig(const std::string& new_proxy_config);
151
148 // These methods are intended to be called by the background thread 152 // These methods are intended to be called by the background thread
149 // to signal that the given event has occurred, and that any corresponding 153 // to signal that the given event has occurred, and that any corresponding
150 // Wait... function can return. 154 // Wait... function can return.
151 void SignalAppLaunch(const std::string& version_string); 155 void SignalAppLaunch(const std::string& version_string);
152 void SignalInitialLoads(); 156 void SignalInitialLoads();
153 // load_time is how long, in ms, the tab contents took to load. 157 // load_time is how long, in ms, the tab contents took to load.
154 void SignalNewTabUITab(int load_time); 158 void SignalNewTabUITab(int load_time);
155 159
156 // Set whether or not running the save page as... command show prompt the 160 // Set whether or not running the save page as... command show prompt the
157 // user for a download path. Returns true if the message is successfully 161 // user for a download path. Returns true if the message is successfully
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // a version resource. 240 // a version resource.
237 bool perform_version_check_; 241 bool perform_version_check_;
238 242
239 // Delay to let the browser execute the command. 243 // Delay to let the browser execute the command.
240 base::TimeDelta command_execution_timeout_; 244 base::TimeDelta command_execution_timeout_;
241 245
242 DISALLOW_COPY_AND_ASSIGN(AutomationProxy); 246 DISALLOW_COPY_AND_ASSIGN(AutomationProxy);
243 }; 247 };
244 248
245 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__ 249 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_PROXY_H__
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_messages_internal.h ('k') | chrome/test/automation/automation_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698