| 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 255 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 266 | 266 |
| 267 // Attaches an existing external tab to this automation client instance. | 267 // Attaches an existing external tab to this automation client instance. |
| 268 void AttachExternalTab(uint64 external_tab_cookie); | 268 void AttachExternalTab(uint64 external_tab_cookie); |
| 269 void BlockExternalTab(uint64 cookie); | 269 void BlockExternalTab(uint64 cookie); |
| 270 | 270 |
| 271 void SetPageFontSize(enum AutomationPageFontSize); | 271 void SetPageFontSize(enum AutomationPageFontSize); |
| 272 | 272 |
| 273 // For IDeleteBrowsingHistorySupport | 273 // For IDeleteBrowsingHistorySupport |
| 274 void RemoveBrowsingData(int remove_mask); | 274 void RemoveBrowsingData(int remove_mask); |
| 275 | 275 |
| 276 // Sends an IPC message to the external tab container requesting it to run |
| 277 // unload handlers on the page. |
| 278 void RunUnloadHandlers(HWND notification_window, int notification_message); |
| 279 |
| 276 protected: | 280 protected: |
| 277 // ChromeFrameAutomationProxy::LaunchDelegate implementation. | 281 // ChromeFrameAutomationProxy::LaunchDelegate implementation. |
| 278 virtual void LaunchComplete(ChromeFrameAutomationProxy* proxy, | 282 virtual void LaunchComplete(ChromeFrameAutomationProxy* proxy, |
| 279 AutomationLaunchResult result); | 283 AutomationLaunchResult result); |
| 280 // TabProxyDelegate implementation | 284 // TabProxyDelegate implementation |
| 281 virtual void OnMessageReceived(TabProxy* tab, const IPC::Message& msg); | 285 virtual void OnMessageReceived(TabProxy* tab, const IPC::Message& msg); |
| 282 virtual void OnChannelError(TabProxy* tab); | 286 virtual void OnChannelError(TabProxy* tab); |
| 283 | 287 |
| 284 void CreateExternalTab(); | 288 void CreateExternalTab(); |
| 285 AutomationLaunchResult CreateExternalTabComplete(HWND chrome_window, | 289 AutomationLaunchResult CreateExternalTabComplete(HWND chrome_window, |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 public: | 376 public: |
| 373 void SetUrlFetcher(PluginUrlRequestManager* url_fetcher) { | 377 void SetUrlFetcher(PluginUrlRequestManager* url_fetcher) { |
| 374 DCHECK(url_fetcher != NULL); | 378 DCHECK(url_fetcher != NULL); |
| 375 url_fetcher_ = url_fetcher; | 379 url_fetcher_ = url_fetcher; |
| 376 url_fetcher_flags_ = url_fetcher->GetThreadSafeFlags(); | 380 url_fetcher_flags_ = url_fetcher->GetThreadSafeFlags(); |
| 377 url_fetcher_->set_delegate(this); | 381 url_fetcher_->set_delegate(this); |
| 378 } | 382 } |
| 379 }; | 383 }; |
| 380 | 384 |
| 381 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 385 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
| OLD | NEW |