OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 |
11 #if defined(OS_WIN) | 11 #if defined(OS_WIN) |
12 #include <wtypes.h> // NOLINT | 12 #include <wtypes.h> // NOLINT |
13 #endif | 13 #endif |
14 | 14 |
15 #include <string> | 15 #include <string> |
16 #include <vector> | 16 #include <vector> |
17 | 17 |
18 #include "base/compiler_specific.h" | 18 #include "base/compiler_specific.h" |
19 #include "base/observer_list.h" | 19 #include "base/observer_list.h" |
20 #include "chrome/browser/download/save_package.h" | 20 #include "chrome/browser/download/save_package.h" |
21 #include "chrome/browser/tab_contents/navigation_entry.h" | 21 #include "chrome/common/automation_constants.h" |
22 #include "chrome/browser/tab_contents/security_style.h" | 22 #include "chrome/common/page_type.h" |
23 #include "chrome/test/automation/automation_constants.h" | 23 #include "chrome/common/security_style.h" |
24 #include "chrome/test/automation/automation_handle_tracker.h" | 24 #include "chrome/test/automation/automation_handle_tracker.h" |
25 #include "chrome/test/automation/dom_element_proxy.h" | 25 #include "chrome/test/automation/dom_element_proxy.h" |
26 #include "chrome/test/automation/javascript_execution_controller.h" | 26 #include "chrome/test/automation/javascript_execution_controller.h" |
27 | 27 |
28 class GURL; | 28 class GURL; |
29 class Value; | 29 class Value; |
30 namespace IPC { | 30 namespace IPC { |
31 class Message; | 31 class Message; |
32 }; | 32 }; |
33 | 33 |
(...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 // timeout_ms gives the max amount of time to wait for restore to complete. | 316 // timeout_ms gives the max amount of time to wait for restore to complete. |
317 bool WaitForTabToBeRestored(uint32 timeout_ms) WARN_UNUSED_RESULT; | 317 bool WaitForTabToBeRestored(uint32 timeout_ms) WARN_UNUSED_RESULT; |
318 | 318 |
319 // Retrieves the different security states for the current tab. | 319 // Retrieves the different security states for the current tab. |
320 bool GetSecurityState(SecurityStyle* security_style, | 320 bool GetSecurityState(SecurityStyle* security_style, |
321 int* ssl_cert_status, | 321 int* ssl_cert_status, |
322 int* insecure_content_status) WARN_UNUSED_RESULT; | 322 int* insecure_content_status) WARN_UNUSED_RESULT; |
323 | 323 |
324 // Returns the type of the page currently showing (normal, interstitial, | 324 // Returns the type of the page currently showing (normal, interstitial, |
325 // error). | 325 // error). |
326 bool GetPageType(NavigationEntry::PageType* page_type) WARN_UNUSED_RESULT; | 326 bool GetPageType(PageType* page_type) WARN_UNUSED_RESULT; |
327 | 327 |
328 // Simulates the user action on the SSL blocking page. if |proceed| is true, | 328 // Simulates the user action on the SSL blocking page. if |proceed| is true, |
329 // this is equivalent to clicking the 'Proceed' button, if false to 'Take me | 329 // this is equivalent to clicking the 'Proceed' button, if false to 'Take me |
330 // out of there' button. | 330 // out of there' button. |
331 bool TakeActionOnSSLBlockingPage(bool proceed) WARN_UNUSED_RESULT; | 331 bool TakeActionOnSSLBlockingPage(bool proceed) WARN_UNUSED_RESULT; |
332 | 332 |
333 // Prints the current page without user intervention. | 333 // Prints the current page without user intervention. |
334 bool PrintNow() WARN_UNUSED_RESULT; | 334 bool PrintNow() WARN_UNUSED_RESULT; |
335 | 335 |
336 // Sends off an asynchronous request for printing. | 336 // Sends off an asynchronous request for printing. |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
427 // purposes. | 427 // purposes. |
428 void LastObjectRemoved(); | 428 void LastObjectRemoved(); |
429 | 429 |
430 private: | 430 private: |
431 Lock list_lock_; // Protects the observers_list_. | 431 Lock list_lock_; // Protects the observers_list_. |
432 ObserverList<TabProxyDelegate> observers_list_; | 432 ObserverList<TabProxyDelegate> observers_list_; |
433 DISALLOW_COPY_AND_ASSIGN(TabProxy); | 433 DISALLOW_COPY_AND_ASSIGN(TabProxy); |
434 }; | 434 }; |
435 | 435 |
436 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ | 436 #endif // CHROME_TEST_AUTOMATION_TAB_PROXY_H_ |
OLD | NEW |