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_UTILS_H_ | 5 #ifndef CHROME_FRAME_UTILS_H_ |
6 #define CHROME_FRAME_UTILS_H_ | 6 #define CHROME_FRAME_UTILS_H_ |
7 | 7 |
8 #include <OAidl.h> | 8 #include <OAidl.h> |
9 #include <windows.h> | 9 #include <windows.h> |
10 #include <wininet.h> | 10 #include <wininet.h> |
(...skipping 546 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
557 bool attach_to_external_tab_; | 557 bool attach_to_external_tab_; |
558 bool is_chrome_protocol_; | 558 bool is_chrome_protocol_; |
559 uint64 cookie_; | 559 uint64 cookie_; |
560 gfx::Rect dimensions_; | 560 gfx::Rect dimensions_; |
561 int disposition_; | 561 int disposition_; |
562 | 562 |
563 GURL parsed_url_; | 563 GURL parsed_url_; |
564 std::string profile_name_; | 564 std::string profile_name_; |
565 }; | 565 }; |
566 | 566 |
| 567 class NavigationConstraints; |
567 // Returns true if we can navigate to this URL. | 568 // Returns true if we can navigate to this URL. |
568 // This function checks if the url scheme is valid for navigation within | 569 // These decisions are controlled by the NavigationConstraints object passed |
569 // chrome and whether it is a restricted URL as per IE settings. In either of | 570 // in. |
570 // these cases it returns false. | 571 bool CanNavigate(const GURL& url, |
571 bool CanNavigate(const GURL& url, IInternetSecurityManager* security_manager, | 572 NavigationConstraints* navigation_constraints); |
572 bool is_privileged); | |
573 | 573 |
574 // Utility function that prevents the current module from ever being unloaded. | 574 // Utility function that prevents the current module from ever being unloaded. |
575 // Call if you make irreversible patches. | 575 // Call if you make irreversible patches. |
576 void PinModule(); | 576 void PinModule(); |
577 | 577 |
578 // Helper function to spin a message loop and dispatch messages while waiting | 578 // Helper function to spin a message loop and dispatch messages while waiting |
579 // for a handle to be signaled. | 579 // for a handle to be signaled. |
580 void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout); | 580 void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout); |
581 | 581 |
582 // Enumerates values in a key and adds them to an array. | 582 // Enumerates values in a key and adds them to an array. |
(...skipping 22 matching lines...) Expand all Loading... |
605 // | 605 // |
606 // For example: | 606 // For example: |
607 // X-UA-Compatible: IE=8; Chrome=IE6 | 607 // X-UA-Compatible: IE=8; Chrome=IE6 |
608 // | 608 // |
609 // The string is first interpreted using ';' as a delimiter. It is reevaluated | 609 // The string is first interpreted using ';' as a delimiter. It is reevaluated |
610 // using ',' iff no valid 'chrome=' value is found. | 610 // using ',' iff no valid 'chrome=' value is found. |
611 bool CheckXUaCompatibleDirective(const std::string& directive, | 611 bool CheckXUaCompatibleDirective(const std::string& directive, |
612 int ie_major_version); | 612 int ie_major_version); |
613 | 613 |
614 #endif // CHROME_FRAME_UTILS_H_ | 614 #endif // CHROME_FRAME_UTILS_H_ |
OLD | NEW |