OLD | NEW |
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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 const std::string& origin, | 275 const std::string& origin, |
276 const std::string& target); | 276 const std::string& target); |
277 #endif // defined(OS_WIN) | 277 #endif // defined(OS_WIN) |
278 | 278 |
279 // Waits for the tab to finish being restored. Returns true on success. | 279 // Waits for the tab to finish being restored. Returns true on success. |
280 // timeout_ms gives the max amount of time to wait for restore to complete. | 280 // timeout_ms gives the max amount of time to wait for restore to complete. |
281 bool WaitForTabToBeRestored(uint32 timeout_ms) WARN_UNUSED_RESULT; | 281 bool WaitForTabToBeRestored(uint32 timeout_ms) WARN_UNUSED_RESULT; |
282 | 282 |
283 // Retrieves the different security states for the current tab. | 283 // Retrieves the different security states for the current tab. |
284 bool GetSecurityState(SecurityStyle* security_style, | 284 bool GetSecurityState(SecurityStyle* security_style, |
285 int* ssl_cert_status, | 285 net::CertStatus* ssl_cert_status, |
286 int* insecure_content_status) WARN_UNUSED_RESULT; | 286 int* insecure_content_status) WARN_UNUSED_RESULT; |
287 | 287 |
288 // Returns the type of the page currently showing (normal, interstitial, | 288 // Returns the type of the page currently showing (normal, interstitial, |
289 // error). | 289 // error). |
290 bool GetPageType(PageType* page_type) WARN_UNUSED_RESULT; | 290 bool GetPageType(PageType* page_type) WARN_UNUSED_RESULT; |
291 | 291 |
292 // Simulates the user action on the SSL blocking page. if |proceed| is true, | 292 // Simulates the user action on the SSL blocking page. if |proceed| is true, |
293 // this is equivalent to clicking the 'Proceed' button, if false to 'Take me | 293 // this is equivalent to clicking the 'Proceed' button, if false to 'Take me |
294 // out of there' button. | 294 // out of there' button. |
295 bool TakeActionOnSSLBlockingPage(bool proceed) WARN_UNUSED_RESULT; | 295 bool TakeActionOnSSLBlockingPage(bool proceed) WARN_UNUSED_RESULT; |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
406 const std::wstring& frame_xpath, | 406 const std::wstring& frame_xpath, |
407 const std::wstring& jscript) WARN_UNUSED_RESULT; | 407 const std::wstring& jscript) WARN_UNUSED_RESULT; |
408 | 408 |
409 private: | 409 private: |
410 base::Lock list_lock_; // Protects the observers_list_. | 410 base::Lock list_lock_; // Protects the observers_list_. |
411 ObserverList<TabProxyDelegate> observers_list_; | 411 ObserverList<TabProxyDelegate> observers_list_; |
412 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 412 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
413 }; | 413 }; |
414 | 414 |
415 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 415 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
OLD | NEW |