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

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

Issue 2280003: Use IPC to wait for download in DownloadTest. (Closed) Base URL: git://codf21.jail.google.com/chromium.git
Patch Set: Fix compile error. Created 10 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
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_BROWSER_PROXY_H_ 5 #ifndef CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_
6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ 6 #define CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_
7 7
8 #include "build/build_config.h" 8 #include "build/build_config.h"
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 bool RemoveBookmark(int64 id) WARN_UNUSED_RESULT; 171 bool RemoveBookmark(int64 id) WARN_UNUSED_RESULT;
172 172
173 // Fills |*is_visible| with whether the browser's download shelf is currently 173 // Fills |*is_visible| with whether the browser's download shelf is currently
174 // visible. The return value indicates success. On failure, |*is_visible| is 174 // visible. The return value indicates success. On failure, |*is_visible| is
175 // unchanged. 175 // unchanged.
176 bool IsShelfVisible(bool* is_visible) WARN_UNUSED_RESULT; 176 bool IsShelfVisible(bool* is_visible) WARN_UNUSED_RESULT;
177 177
178 // Shows or hides the download shelf. 178 // Shows or hides the download shelf.
179 bool SetShelfVisible(bool is_visible) WARN_UNUSED_RESULT; 179 bool SetShelfVisible(bool is_visible) WARN_UNUSED_RESULT;
180 180
181 // Waits for the download shelf to appear or disappear.
182 bool WaitForDownloadShelfVisibilityChange(bool visibility) WARN_UNUSED_RESULT;
183
181 // Sets the int value of the specified preference. 184 // Sets the int value of the specified preference.
182 bool SetIntPreference(const std::wstring& name, int value) WARN_UNUSED_RESULT; 185 bool SetIntPreference(const std::wstring& name, int value) WARN_UNUSED_RESULT;
183 186
184 // Sets the string value of the specified preference. 187 // Sets the string value of the specified preference.
185 bool SetStringPreference(const std::wstring& name, 188 bool SetStringPreference(const std::wstring& name,
186 const std::wstring& value) WARN_UNUSED_RESULT; 189 const std::wstring& value) WARN_UNUSED_RESULT;
187 190
188 // Gets the boolean value of the specified preference. 191 // Gets the boolean value of the specified preference.
189 bool GetBooleanPreference(const std::wstring& name, 192 bool GetBooleanPreference(const std::wstring& name,
190 bool* value) WARN_UNUSED_RESULT; 193 bool* value) WARN_UNUSED_RESULT;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 bool SendJSONRequest(const std::string& request, 233 bool SendJSONRequest(const std::string& request,
231 std::string* response) WARN_UNUSED_RESULT; 234 std::string* response) WARN_UNUSED_RESULT;
232 235
233 protected: 236 protected:
234 virtual ~BrowserProxy() {} 237 virtual ~BrowserProxy() {}
235 private: 238 private:
236 DISALLOW_COPY_AND_ASSIGN(BrowserProxy); 239 DISALLOW_COPY_AND_ASSIGN(BrowserProxy);
237 }; 240 };
238 241
239 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_ 242 #endif // CHROME_TEST_AUTOMATION_BROWSER_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/test/automation/automation_messages_internal.h ('k') | chrome/test/automation/browser_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698