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 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 | 282 |
283 // Returns the type of the page currently showing (normal, interstitial, | 283 // Returns the type of the page currently showing (normal, interstitial, |
284 // error). | 284 // error). |
285 bool GetPageType(content::PageType* page_type) WARN_UNUSED_RESULT; | 285 bool GetPageType(content::PageType* page_type) WARN_UNUSED_RESULT; |
286 | 286 |
287 // Simulates the user action on the SSL blocking page. if |proceed| is true, | 287 // Simulates the user action on the SSL blocking page. if |proceed| is true, |
288 // this is equivalent to clicking the 'Proceed' button, if false to 'Take me | 288 // this is equivalent to clicking the 'Proceed' button, if false to 'Take me |
289 // out of there' button. | 289 // out of there' button. |
290 bool TakeActionOnSSLBlockingPage(bool proceed) WARN_UNUSED_RESULT; | 290 bool TakeActionOnSSLBlockingPage(bool proceed) WARN_UNUSED_RESULT; |
291 | 291 |
292 // Prints the current page without user intervention. | |
293 bool PrintNow() WARN_UNUSED_RESULT; | |
294 | |
295 // Sends off an asynchronous request for printing. | 292 // Sends off an asynchronous request for printing. |
296 bool PrintAsync() WARN_UNUSED_RESULT; | 293 bool PrintAsync() WARN_UNUSED_RESULT; |
297 | 294 |
298 // Save the current web page. |file_name| is the HTML file name, and | 295 // Save the current web page. |file_name| is the HTML file name, and |
299 // |dir_path| is the directory for saving resource files. |type| indicates | 296 // |dir_path| is the directory for saving resource files. |type| indicates |
300 // which type we're saving as: HTML only or the complete web page. | 297 // which type we're saving as: HTML only or the complete web page. |
301 bool SavePage(const FilePath& file_name, const FilePath& dir_path, | 298 bool SavePage(const FilePath& file_name, const FilePath& dir_path, |
302 content::SavePageType type) WARN_UNUSED_RESULT; | 299 content::SavePageType type) WARN_UNUSED_RESULT; |
303 | 300 |
304 // Retrieves the number of info-bars currently showing in |count|. | 301 // Retrieves the number of info-bars currently showing in |count|. |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
401 const std::wstring& frame_xpath, | 398 const std::wstring& frame_xpath, |
402 const std::wstring& jscript) WARN_UNUSED_RESULT; | 399 const std::wstring& jscript) WARN_UNUSED_RESULT; |
403 | 400 |
404 private: | 401 private: |
405 base::Lock list_lock_; // Protects the observers_list_. | 402 base::Lock list_lock_; // Protects the observers_list_. |
406 ObserverList<TabProxyDelegate> observers_list_; | 403 ObserverList<TabProxyDelegate> observers_list_; |
407 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 404 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
408 }; | 405 }; |
409 | 406 |
410 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 407 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
OLD | NEW |