| 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 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 265 | 265 |
| 266 // Prints the current page without user intervention. | 266 // Prints the current page without user intervention. |
| 267 bool PrintNow(); | 267 bool PrintNow(); |
| 268 | 268 |
| 269 // Sends off an asynchronous request for printing. | 269 // Sends off an asynchronous request for printing. |
| 270 bool PrintAsync(); | 270 bool PrintAsync(); |
| 271 | 271 |
| 272 // Save the current web page. |file_name| is the HTML file name, and | 272 // Save the current web page. |file_name| is the HTML file name, and |
| 273 // |dir_path| is the directory for saving resource files. |type| indicates | 273 // |dir_path| is the directory for saving resource files. |type| indicates |
| 274 // which type we're saving as: HTML only or the complete web page. | 274 // which type we're saving as: HTML only or the complete web page. |
| 275 bool SavePage(const std::wstring& file_name, | 275 bool SavePage(const FilePath& file_name, const FilePath& dir_path, |
| 276 const std::wstring& dir_path, | |
| 277 SavePackage::SavePackageType type); | 276 SavePackage::SavePackageType type); |
| 278 | 277 |
| 279 // Posts a message to the external tab. | 278 // Posts a message to the external tab. |
| 280 void HandleMessageFromExternalHost(const std::string& message, | 279 void HandleMessageFromExternalHost(const std::string& message, |
| 281 const std::string& origin, | 280 const std::string& origin, |
| 282 const std::string& target); | 281 const std::string& target); |
| 283 | 282 |
| 284 // Retrieves the number of SSL related info-bars currently showing in |count|. | 283 // Retrieves the number of SSL related info-bars currently showing in |count|. |
| 285 bool GetSSLInfoBarCount(int* count); | 284 bool GetSSLInfoBarCount(int* count); |
| 286 | 285 |
| (...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 339 void OnMessageReceived(const IPC::Message& message); | 338 void OnMessageReceived(const IPC::Message& message); |
| 340 protected: | 339 protected: |
| 341 virtual ~TabProxy() {} | 340 virtual ~TabProxy() {} |
| 342 private: | 341 private: |
| 343 Lock list_lock_; // Protects the observers_list_. | 342 Lock list_lock_; // Protects the observers_list_. |
| 344 ObserverList<TabProxyDelegate> observers_list_; | 343 ObserverList<TabProxyDelegate> observers_list_; |
| 345 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 344 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
| 346 }; | 345 }; |
| 347 | 346 |
| 348 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 347 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
| OLD | NEW |