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

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

Issue 10830193: Remove SWIGged use of BrowserProxy and TabProxy from PyAuto tests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Used named arguments and deleted unused test files, as suggested by Nirnimesh. Created 8 years, 4 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 7
8 #include "build/build_config.h" // NOLINT 8 #include "build/build_config.h" // NOLINT
9 9
10 #if defined(OS_WIN) 10 #if defined(OS_WIN)
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 183
184 AutomationMsg_NavigationResponseValues NavigateExternalTabAtIndex( 184 AutomationMsg_NavigationResponseValues NavigateExternalTabAtIndex(
185 int index) WARN_UNUSED_RESULT; 185 int index) WARN_UNUSED_RESULT;
186 186
187 // Posts a message to the external tab. 187 // Posts a message to the external tab.
188 void HandleMessageFromExternalHost(const std::string& message, 188 void HandleMessageFromExternalHost(const std::string& message,
189 const std::string& origin, 189 const std::string& origin,
190 const std::string& target); 190 const std::string& target);
191 #endif // defined(OS_WIN) 191 #endif // defined(OS_WIN)
192 192
193 // Waits for the tab to finish being restored. Returns true on success.
194 // timeout_ms gives the max amount of time to wait for restore to complete.
195 bool WaitForTabToBeRestored(uint32 timeout_ms) WARN_UNUSED_RESULT;
196
197 // Retrieves the different security states for the current tab.
198 bool GetSecurityState(content::SecurityStyle* security_style,
199 net::CertStatus* ssl_cert_status,
200 int* insecure_content_status) WARN_UNUSED_RESULT;
201
202 // Returns the type of the page currently showing (normal, interstitial,
203 // error).
204 bool GetPageType(content::PageType* page_type) WARN_UNUSED_RESULT;
205
206 // Simulates the user action on the SSL blocking page. if |proceed| is true,
207 // this is equivalent to clicking the 'Proceed' button, if false to 'Take me
208 // out of there' button.
209 bool TakeActionOnSSLBlockingPage(bool proceed) WARN_UNUSED_RESULT;
210
211 // Sends off an asynchronous request for printing. 193 // Sends off an asynchronous request for printing.
212 bool PrintAsync() WARN_UNUSED_RESULT; 194 bool PrintAsync() WARN_UNUSED_RESULT;
213 195
214 // Waits until the infobar count is |count|. 196 // Waits until the infobar count is |count|.
215 // Returns true on success. 197 // Returns true on success.
216 bool WaitForInfoBarCount(size_t count) WARN_UNUSED_RESULT; 198 bool WaitForInfoBarCount(size_t count) WARN_UNUSED_RESULT;
217 199
218 // Uses the specified encoding to override encoding of the page in the tab. 200 // Uses the specified encoding to override encoding of the page in the tab.
219 bool OverrideEncoding(const std::string& encoding) WARN_UNUSED_RESULT; 201 bool OverrideEncoding(const std::string& encoding) WARN_UNUSED_RESULT;
220 202
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
277 const std::wstring& frame_xpath, 259 const std::wstring& frame_xpath,
278 const std::wstring& jscript) WARN_UNUSED_RESULT; 260 const std::wstring& jscript) WARN_UNUSED_RESULT;
279 261
280 private: 262 private:
281 base::Lock list_lock_; // Protects the observers_list_. 263 base::Lock list_lock_; // Protects the observers_list_.
282 ObserverList<TabProxyDelegate> observers_list_; 264 ObserverList<TabProxyDelegate> observers_list_;
283 DISALLOW_COPY_AND_ASSIGN(TabProxy); 265 DISALLOW_COPY_AND_ASSIGN(TabProxy);
284 }; 266 };
285 267
286 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ 268 #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