| OLD | NEW |
| 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_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" | 8 #include "build/build_config.h" |
| 9 | 9 |
| 10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
| (...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 113 // Replaces a vector contents with the redirect chain out of the given URL. | 113 // Replaces a vector contents with the redirect chain out of the given URL. |
| 114 // Returns true on success. Failure may be due to being unable to send the | 114 // Returns true on success. Failure may be due to being unable to send the |
| 115 // message, parse the response, or a failure of the history system in the | 115 // message, parse the response, or a failure of the history system in the |
| 116 // browser. | 116 // browser. |
| 117 bool GetRedirectsFrom(const GURL& source_url, std::vector<GURL>* redirects); | 117 bool GetRedirectsFrom(const GURL& source_url, std::vector<GURL>* redirects); |
| 118 | 118 |
| 119 // Equivalent to hitting the Back button. This is a synchronous call and | 119 // Equivalent to hitting the Back button. This is a synchronous call and |
| 120 // hence blocks until the navigation completes. | 120 // hence blocks until the navigation completes. |
| 121 AutomationMsg_NavigationResponseValues GoBack(); | 121 AutomationMsg_NavigationResponseValues GoBack(); |
| 122 | 122 |
| 123 // Equivalent to hitting the Back button. This is a synchronous call and |
| 124 // hence blocks until the |number_of_navigations| navigations complete. |
| 125 AutomationMsg_NavigationResponseValues GoBackBlockUntilNavigationsComplete( |
| 126 int number_of_navigations); |
| 127 |
| 123 // Equivalent to hitting the Forward button. This is a synchronous call and | 128 // Equivalent to hitting the Forward button. This is a synchronous call and |
| 124 // hence blocks until the navigation completes. | 129 // hence blocks until the navigation completes. |
| 125 AutomationMsg_NavigationResponseValues GoForward(); | 130 AutomationMsg_NavigationResponseValues GoForward(); |
| 126 | 131 |
| 132 // Equivalent to hitting the Forward button. This is a synchronous call and |
| 133 // hence blocks until the |number_of_navigations| navigations complete. |
| 134 AutomationMsg_NavigationResponseValues GoForwardBlockUntilNavigationsComplete( |
| 135 int number_of_navigations); |
| 136 |
| 127 // Equivalent to hitting the Reload button. This is a synchronous call and | 137 // Equivalent to hitting the Reload button. This is a synchronous call and |
| 128 // hence blocks until the navigation completes. | 138 // hence blocks until the navigation completes. |
| 129 AutomationMsg_NavigationResponseValues Reload(); | 139 AutomationMsg_NavigationResponseValues Reload(); |
| 130 | 140 |
| 131 // Closes the tab. This is synchronous, but does NOT block until the tab has | 141 // Closes the tab. This is synchronous, but does NOT block until the tab has |
| 132 // closed, rather it blocks until the browser has initiated the close. Use | 142 // closed, rather it blocks until the browser has initiated the close. Use |
| 133 // Close(true) if you need to block until tab completely closes. | 143 // Close(true) if you need to block until tab completely closes. |
| 134 // | 144 // |
| 135 // Note that this proxy is invalid after this call. | 145 // Note that this proxy is invalid after this call. |
| 136 bool Close(); | 146 bool Close(); |
| (...skipping 193 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 330 void OnMessageReceived(const IPC::Message& message); | 340 void OnMessageReceived(const IPC::Message& message); |
| 331 protected: | 341 protected: |
| 332 virtual ~TabProxy() {} | 342 virtual ~TabProxy() {} |
| 333 private: | 343 private: |
| 334 Lock list_lock_; // Protects the observers_list_. | 344 Lock list_lock_; // Protects the observers_list_. |
| 335 ObserverList<TabProxyDelegate> observers_list_; | 345 ObserverList<TabProxyDelegate> observers_list_; |
| 336 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 346 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
| 337 }; | 347 }; |
| 338 | 348 |
| 339 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 349 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
| OLD | NEW |