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

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

Issue 10383174: Convert the CollectedCookies interactive_ui_tests to a browser_test. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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
« no previous file with comments | « chrome/common/automation_messages_internal.h ('k') | chrome/test/automation/tab_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 5 #ifndef CHROME_TEST_AUTOMATION_TAB_PROXY_H_
6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 6 #define CHROME_TEST_AUTOMATION_TAB_PROXY_H_
7 #pragma once 7 #pragma once
8 8
9 #include "build/build_config.h" // NOLINT 9 #include "build/build_config.h" // NOLINT
10 10
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 FindInPageCase match_case, bool find_next, int* ordinal); 178 FindInPageCase match_case, bool find_next, int* ordinal);
179 179
180 bool GetCookies(const GURL& url, std::string* cookies) WARN_UNUSED_RESULT; 180 bool GetCookies(const GURL& url, std::string* cookies) WARN_UNUSED_RESULT;
181 bool GetCookieByName(const GURL& url, 181 bool GetCookieByName(const GURL& url,
182 const std::string& name, 182 const std::string& name,
183 std::string* cookies) WARN_UNUSED_RESULT; 183 std::string* cookies) WARN_UNUSED_RESULT;
184 bool SetCookie(const GURL& url, const std::string& value) WARN_UNUSED_RESULT; 184 bool SetCookie(const GURL& url, const std::string& value) WARN_UNUSED_RESULT;
185 bool DeleteCookie(const GURL& url, 185 bool DeleteCookie(const GURL& url,
186 const std::string& name) WARN_UNUSED_RESULT; 186 const std::string& name) WARN_UNUSED_RESULT;
187 187
188 // Opens the collected cookies dialog for the current tab. This function can
189 // be invoked on any valid tab.
190 bool ShowCollectedCookiesDialog() WARN_UNUSED_RESULT;
191
192 // Sends a InspectElement message for the current tab. |x| and |y| are the 188 // Sends a InspectElement message for the current tab. |x| and |y| are the
193 // coordinates that we want to simulate that the user is trying to inspect. 189 // coordinates that we want to simulate that the user is trying to inspect.
194 int InspectElement(int x, int y); 190 int InspectElement(int x, int y);
195 191
196 // Gets the number of popups blocked from this tab. 192 // Gets the number of popups blocked from this tab.
197 bool GetBlockedPopupCount(int* count) const WARN_UNUSED_RESULT; 193 bool GetBlockedPopupCount(int* count) const WARN_UNUSED_RESULT;
198 194
199 // Blocks the thread until the number of blocked popup is equal to 195 // Blocks the thread until the number of blocked popup is equal to
200 // |target_count|. 196 // |target_count|.
201 bool WaitForBlockedPopupCountToChangeTo(int target_count, 197 bool WaitForBlockedPopupCountToChangeTo(int target_count,
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 const std::wstring& frame_xpath, 362 const std::wstring& frame_xpath,
367 const std::wstring& jscript) WARN_UNUSED_RESULT; 363 const std::wstring& jscript) WARN_UNUSED_RESULT;
368 364
369 private: 365 private:
370 base::Lock list_lock_; // Protects the observers_list_. 366 base::Lock list_lock_; // Protects the observers_list_.
371 ObserverList<TabProxyDelegate> observers_list_; 367 ObserverList<TabProxyDelegate> observers_list_;
372 DISALLOW_COPY_AND_ASSIGN(TabProxy); 368 DISALLOW_COPY_AND_ASSIGN(TabProxy);
373 }; 369 };
374 370
375 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 371 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_
OLDNEW
« no previous file with comments | « chrome/common/automation_messages_internal.h ('k') | chrome/test/automation/tab_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698