| 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_FRAME_CHROME_FRAME_AUTOMATION_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
| 6 #define CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
| 7 | 7 |
| 8 #include <atlbase.h> | 8 #include <atlbase.h> |
| 9 #include <atlwin.h> | 9 #include <atlwin.h> |
| 10 #include <map> | 10 #include <map> |
| 11 #include <string> | 11 #include <string> |
| 12 #include <vector> | 12 #include <vector> |
| 13 | 13 |
| 14 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
| 15 #include "base/memory/scoped_handle.h" | 15 #include "base/memory/scoped_handle.h" |
| 16 #include "base/stack_container.h" | 16 #include "base/stack_container.h" |
| 17 #include "base/synchronization/lock.h" | 17 #include "base/synchronization/lock.h" |
| 18 #include "base/task.h" | 18 #include "base/task.h" |
| 19 #include "base/threading/thread.h" | 19 #include "base/threading/thread.h" |
| 20 #include "base/timer.h" | 20 #include "base/timer.h" |
| 21 #include "chrome/test/automation/automation_proxy.h" | 21 #include "chrome/test/automation/automation_proxy.h" |
| 22 #include "chrome/test/automation/tab_proxy.h" | 22 #include "chrome/test/automation/tab_proxy.h" |
| 23 #include "chrome_frame/chrome_frame_delegate.h" | 23 #include "chrome_frame/chrome_frame_delegate.h" |
| 24 #include "chrome_frame/plugin_url_request.h" | 24 #include "chrome_frame/plugin_url_request.h" |
| 25 #include "chrome_frame/sync_msg_reply_dispatcher.h" | 25 #include "chrome_frame/sync_msg_reply_dispatcher.h" |
| 26 #include "content/common/page_zoom.h" | 26 #include "content/public/common/page_zoom.h" |
| 27 | 27 |
| 28 // By a convoluated route, this timeout also winds up being the sync automation | 28 // By a convoluated route, this timeout also winds up being the sync automation |
| 29 // message timeout. See the ChromeFrameAutomationProxyImpl ctor and the | 29 // message timeout. See the ChromeFrameAutomationProxyImpl ctor and the |
| 30 // AutomationProxy ctor for details. | 30 // AutomationProxy ctor for details. |
| 31 const unsigned long kCommandExecutionTimeout = 60000; // NOLINT, 60 seconds | 31 const unsigned long kCommandExecutionTimeout = 60000; // NOLINT, 60 seconds |
| 32 | 32 |
| 33 class ProxyFactory; | 33 class ProxyFactory; |
| 34 class NavigationConstraints; | 34 class NavigationConstraints; |
| 35 enum AutomationPageFontSize; | 35 enum AutomationPageFontSize; |
| 36 | 36 |
| (...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 392 // Attaches an existing external tab to this automation client instance. | 392 // Attaches an existing external tab to this automation client instance. |
| 393 void AttachExternalTab(uint64 external_tab_cookie); | 393 void AttachExternalTab(uint64 external_tab_cookie); |
| 394 void BlockExternalTab(uint64 cookie); | 394 void BlockExternalTab(uint64 cookie); |
| 395 | 395 |
| 396 void SetPageFontSize(enum AutomationPageFontSize); | 396 void SetPageFontSize(enum AutomationPageFontSize); |
| 397 | 397 |
| 398 // For IDeleteBrowsingHistorySupport | 398 // For IDeleteBrowsingHistorySupport |
| 399 void RemoveBrowsingData(int remove_mask); | 399 void RemoveBrowsingData(int remove_mask); |
| 400 | 400 |
| 401 // Sets the current zoom level on the tab. | 401 // Sets the current zoom level on the tab. |
| 402 void SetZoomLevel(PageZoom::Function zoom_level); | 402 void SetZoomLevel(content::PageZoom zoom_level); |
| 403 | 403 |
| 404 // Fires before unload and unload handlers on the page if any. Allows the | 404 // Fires before unload and unload handlers on the page if any. Allows the |
| 405 // the website to put up a confirmation dialog on unload. | 405 // the website to put up a confirmation dialog on unload. |
| 406 void OnUnload(bool* should_unload); | 406 void OnUnload(bool* should_unload); |
| 407 | 407 |
| 408 void set_route_all_top_level_navigations( | 408 void set_route_all_top_level_navigations( |
| 409 bool route_all_top_level_navigations) { | 409 bool route_all_top_level_navigations) { |
| 410 route_all_top_level_navigations_ = route_all_top_level_navigations; | 410 route_all_top_level_navigations_ = route_all_top_level_navigations; |
| 411 } | 411 } |
| 412 | 412 |
| (...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 // set to true if the host needs to get notified of all top level navigations | 519 // set to true if the host needs to get notified of all top level navigations |
| 520 // in this page. This typically applies to hosts which would render the new | 520 // in this page. This typically applies to hosts which would render the new |
| 521 // page without chrome frame. Defaults to false. | 521 // page without chrome frame. Defaults to false. |
| 522 bool route_all_top_level_navigations_; | 522 bool route_all_top_level_navigations_; |
| 523 | 523 |
| 524 friend class BeginNavigateContext; | 524 friend class BeginNavigateContext; |
| 525 friend class CreateExternalTabContext; | 525 friend class CreateExternalTabContext; |
| 526 }; | 526 }; |
| 527 | 527 |
| 528 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 528 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
| OLD | NEW |