OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <objidl.h> | 9 #include <objidl.h> |
10 #include <windows.h> | 10 #include <windows.h> |
(...skipping 530 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
541 std::string profile_name_; | 541 std::string profile_name_; |
542 }; | 542 }; |
543 | 543 |
544 class NavigationConstraints; | 544 class NavigationConstraints; |
545 // Returns true if we can navigate to this URL. | 545 // Returns true if we can navigate to this URL. |
546 // These decisions are controlled by the NavigationConstraints object passed | 546 // These decisions are controlled by the NavigationConstraints object passed |
547 // in. | 547 // in. |
548 bool CanNavigate(const GURL& url, | 548 bool CanNavigate(const GURL& url, |
549 NavigationConstraints* navigation_constraints); | 549 NavigationConstraints* navigation_constraints); |
550 | 550 |
551 // Utility function that prevents the current module from ever being unloaded. | |
552 // Call if you make irreversible patches. | |
553 void PinModule(); | |
554 | |
555 // Helper function to spin a message loop and dispatch messages while waiting | 551 // Helper function to spin a message loop and dispatch messages while waiting |
556 // for a handle to be signaled. | 552 // for a handle to be signaled. |
557 void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout); | 553 void WaitWithMessageLoop(HANDLE* handles, int count, DWORD timeout); |
558 | 554 |
559 // Enumerates values in a key and adds them to an array. | 555 // Enumerates values in a key and adds them to an array. |
560 // The names of the values are not returned. | 556 // The names of the values are not returned. |
561 void EnumerateKeyValues(HKEY parent_key, const wchar_t* sub_key_name, | 557 void EnumerateKeyValues(HKEY parent_key, const wchar_t* sub_key_name, |
562 std::vector<std::wstring>* values); | 558 std::vector<std::wstring>* values); |
563 | 559 |
564 // Interprets the value of an X-UA-Compatible header (or <meta> tag equivalent) | 560 // Interprets the value of an X-UA-Compatible header (or <meta> tag equivalent) |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 // increase the connection count once per process. | 596 // increase the connection count once per process. |
601 // Returns true on success. | 597 // Returns true on success. |
602 bool IncreaseWinInetConnections(DWORD connections); | 598 bool IncreaseWinInetConnections(DWORD connections); |
603 | 599 |
604 // Sets |profile_path| to the path for the Chrome Frame |profile_name| | 600 // Sets |profile_path| to the path for the Chrome Frame |profile_name| |
605 // profile. | 601 // profile. |
606 void GetChromeFrameProfilePath(const string16& profile_name, | 602 void GetChromeFrameProfilePath(const string16& profile_name, |
607 base::FilePath* profile_path); | 603 base::FilePath* profile_path); |
608 | 604 |
609 #endif // CHROME_FRAME_UTILS_H_ | 605 #endif // CHROME_FRAME_UTILS_H_ |
OLD | NEW |