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> |
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 } | 382 } |
383 #endif | 383 #endif |
384 | 384 |
385 void set_handle_top_level_requests(bool handle_top_level_requests) { | 385 void set_handle_top_level_requests(bool handle_top_level_requests) { |
386 handle_top_level_requests_ = handle_top_level_requests; | 386 handle_top_level_requests_ = handle_top_level_requests; |
387 } | 387 } |
388 | 388 |
389 // Url request manager set up. | 389 // Url request manager set up. |
390 void SetUrlFetcher(PluginUrlRequestManager* url_fetcher); | 390 void SetUrlFetcher(PluginUrlRequestManager* url_fetcher); |
391 | 391 |
392 // Called if the same instance of the ChromeFrameAutomationClient object | |
393 // is reused. | |
394 bool Reinitialize(ChromeFrameDelegate* chrome_frame_delegate, | |
395 PluginUrlRequestManager* url_fetcher); | |
396 | |
397 // Attaches an existing external tab to this automation client instance. | 392 // Attaches an existing external tab to this automation client instance. |
398 void AttachExternalTab(uint64 external_tab_cookie); | 393 void AttachExternalTab(uint64 external_tab_cookie); |
399 void BlockExternalTab(uint64 cookie); | 394 void BlockExternalTab(uint64 cookie); |
400 | 395 |
401 void SetPageFontSize(enum AutomationPageFontSize); | 396 void SetPageFontSize(enum AutomationPageFontSize); |
402 | 397 |
403 // For IDeleteBrowsingHistorySupport | 398 // For IDeleteBrowsingHistorySupport |
404 void RemoveBrowsingData(int remove_mask); | 399 void RemoveBrowsingData(int remove_mask); |
405 | 400 |
406 // Sets the current zoom level on the tab. | 401 // Sets the current zoom level on the tab. |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
524 // 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 |
525 // 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 |
526 // page without chrome frame. Defaults to false. | 521 // page without chrome frame. Defaults to false. |
527 bool route_all_top_level_navigations_; | 522 bool route_all_top_level_navigations_; |
528 | 523 |
529 friend class BeginNavigateContext; | 524 friend class BeginNavigateContext; |
530 friend class CreateExternalTabContext; | 525 friend class CreateExternalTabContext; |
531 }; | 526 }; |
532 | 527 |
533 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ | 528 #endif // CHROME_FRAME_CHROME_FRAME_AUTOMATION_H_ |
OLD | NEW |