| 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_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 <string> | 10 #include <string> |
| (...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 324 public: | 324 public: |
| 325 ChromeFrameAutomationClient(); | 325 ChromeFrameAutomationClient(); |
| 326 ~ChromeFrameAutomationClient(); | 326 ~ChromeFrameAutomationClient(); |
| 327 | 327 |
| 328 // Called from UI thread. | 328 // Called from UI thread. |
| 329 virtual bool Initialize(ChromeFrameDelegate* chrome_frame_delegate, | 329 virtual bool Initialize(ChromeFrameDelegate* chrome_frame_delegate, |
| 330 ChromeFrameLaunchParams* chrome_launch_params); | 330 ChromeFrameLaunchParams* chrome_launch_params); |
| 331 void Uninitialize(); | 331 void Uninitialize(); |
| 332 void NotifyAndUninitialize(); | 332 void NotifyAndUninitialize(); |
| 333 | 333 |
| 334 virtual bool InitiateNavigation(const std::string& url, | 334 virtual bool InitiateNavigation( |
| 335 const std::string& referrer, | 335 const std::string& url, |
| 336 bool is_privileged); | 336 const std::string& referrer, |
| 337 NavigationConstraints* navigation_constraints); |
| 338 |
| 337 virtual bool NavigateToIndex(int index); | 339 virtual bool NavigateToIndex(int index); |
| 338 bool ForwardMessageFromExternalHost(const std::string& message, | 340 bool ForwardMessageFromExternalHost(const std::string& message, |
| 339 const std::string& origin, | 341 const std::string& origin, |
| 340 const std::string& target); | 342 const std::string& target); |
| 341 bool SetProxySettings(const std::string& json_encoded_proxy_settings); | 343 bool SetProxySettings(const std::string& json_encoded_proxy_settings); |
| 342 | 344 |
| 343 virtual void SetEnableExtensionAutomation( | 345 virtual void SetEnableExtensionAutomation( |
| 344 const std::vector<std::string>& functions_enabled); | 346 const std::vector<std::string>& functions_enabled); |
| 345 | 347 |
| 346 void FindInPage(const std::wstring& search_string, | 348 void FindInPage(const std::wstring& search_string, |
| (...skipping 209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 556 // set to true if the host needs to get notified of all top level navigations | 558 // set to true if the host needs to get notified of all top level navigations |
| 557 // in this page. This typically applies to hosts which would render the new | 559 // in this page. This typically applies to hosts which would render the new |
| 558 // page without chrome frame. Defaults to false. | 560 // page without chrome frame. Defaults to false. |
| 559 bool route_all_top_level_navigations_; | 561 bool route_all_top_level_navigations_; |
| 560 | 562 |
| 561 friend class BeginNavigateContext; | 563 friend class BeginNavigateContext; |
| 562 friend class CreateExternalTabContext; | 564 friend class CreateExternalTabContext; |
| 563 }; | 565 }; |
| 564 | 566 |
| 565 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 567 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
| OLD | NEW |