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