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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
269 // renderer accessibility for use in automation. | 269 // renderer accessibility for use in automation. |
270 bool IsAccessibleMode(); | 270 bool IsAccessibleMode(); |
271 | 271 |
272 // Returns true if we are running in unpinned mode in which case DLL | 272 // Returns true if we are running in unpinned mode in which case DLL |
273 // eviction should be possible. | 273 // eviction should be possible. |
274 bool IsUnpinnedMode(); | 274 bool IsUnpinnedMode(); |
275 | 275 |
276 // Returns true if all HTML pages should be rendered in GCF by default. | 276 // Returns true if all HTML pages should be rendered in GCF by default. |
277 bool IsGcfDefaultRenderer(); | 277 bool IsGcfDefaultRenderer(); |
278 | 278 |
| 279 // Returns true if the presence of |
| 280 // <meta http-equiv="X-UA-Compatible" content="chrome=1"> |
| 281 // in HTML pages should be ignored |
| 282 bool SkipMetadataCheck(); |
| 283 |
279 // Check if this url is opting into Chrome Frame based on static settings. | 284 // Check if this url is opting into Chrome Frame based on static settings. |
280 // Returns one of: | 285 // Returns one of: |
281 // - RENDERER_TYPE_UNDETERMINED if not opt-in or if explicit opt-out | 286 // - RENDERER_TYPE_UNDETERMINED if not opt-in or if explicit opt-out |
282 // - RENDERER_TYPE_CHROME_DEFAULT_RENDERER | 287 // - RENDERER_TYPE_CHROME_DEFAULT_RENDERER |
283 // - RENDERER_TYPE_CHROME_OPT_IN_URL | 288 // - RENDERER_TYPE_CHROME_OPT_IN_URL |
284 RendererType RendererTypeForUrl(const std::wstring& url); | 289 RendererType RendererTypeForUrl(const std::wstring& url); |
285 | 290 |
286 // Check if we should try to remove the CF user agent based on registry | 291 // Check if we should try to remove the CF user agent based on registry |
287 // settings. | 292 // settings. |
288 bool ShouldRemoveUAForUrl(const string16& url); | 293 bool ShouldRemoveUAForUrl(const string16& url); |
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 // increase the connection count once per process. | 607 // increase the connection count once per process. |
603 // Returns true on success. | 608 // Returns true on success. |
604 bool IncreaseWinInetConnections(DWORD connections); | 609 bool IncreaseWinInetConnections(DWORD connections); |
605 | 610 |
606 // Sets |profile_path| to the path for the Chrome Frame |profile_name| | 611 // Sets |profile_path| to the path for the Chrome Frame |profile_name| |
607 // profile. | 612 // profile. |
608 void GetChromeFrameProfilePath(const string16& profile_name, | 613 void GetChromeFrameProfilePath(const string16& profile_name, |
609 base::FilePath* profile_path); | 614 base::FilePath* profile_path); |
610 | 615 |
611 #endif // CHROME_FRAME_UTILS_H_ | 616 #endif // CHROME_FRAME_UTILS_H_ |
OLD | NEW |