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 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
281 | 281 |
282 // Check if this url is opting into Chrome Frame based on static settings. | 282 // Check if this url is opting into Chrome Frame based on static settings. |
283 // Returns one of: | 283 // Returns one of: |
284 // - RENDERER_TYPE_UNDETERMINED if not opt-in or if explicit opt-out | 284 // - RENDERER_TYPE_UNDETERMINED if not opt-in or if explicit opt-out |
285 // - RENDERER_TYPE_CHROME_DEFAULT_RENDERER | 285 // - RENDERER_TYPE_CHROME_DEFAULT_RENDERER |
286 // - RENDERER_TYPE_CHROME_OPT_IN_URL | 286 // - RENDERER_TYPE_CHROME_OPT_IN_URL |
287 RendererType RendererTypeForUrl(const std::wstring& url); | 287 RendererType RendererTypeForUrl(const std::wstring& url); |
288 | 288 |
289 // Check if we should try to remove the CF user agent based on registry | 289 // Check if we should try to remove the CF user agent based on registry |
290 // settings. | 290 // settings. |
291 bool ShouldRemoveUAForUrl(const string16& url); | 291 bool ShouldRemoveUAForUrl(const base::string16& url); |
292 | 292 |
293 // Testing methods that return the backing stores behind RendererTypeForUrl and | 293 // Testing methods that return the backing stores behind RendererTypeForUrl and |
294 // ShouldRemoveUAForUrl. Intended to allow unit testing code that calls the | 294 // ShouldRemoveUAForUrl. Intended to allow unit testing code that calls the |
295 // above methods. | 295 // above methods. |
296 // TODO(robertshield): All of the FooForUrl code should be removed from here | 296 // TODO(robertshield): All of the FooForUrl code should be removed from here |
297 // and further refactored. | 297 // and further refactored. |
298 RegistryListPreferencesHolder& GetRendererTypePreferencesHolderForTesting(); | 298 RegistryListPreferencesHolder& GetRendererTypePreferencesHolderForTesting(); |
299 RegistryListPreferencesHolder& GetUserAgentPreferencesHolderForTesting(); | 299 RegistryListPreferencesHolder& GetUserAgentPreferencesHolderForTesting(); |
300 | 300 |
301 // A shortcut for QueryService | 301 // A shortcut for QueryService |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 | 594 |
595 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the | 595 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the |
596 // value passed in. This is only done if the existing connection limit is | 596 // value passed in. This is only done if the existing connection limit is |
597 // lesser than the connection limit passed in. This function attempts to | 597 // lesser than the connection limit passed in. This function attempts to |
598 // increase the connection count once per process. | 598 // increase the connection count once per process. |
599 // Returns true on success. | 599 // Returns true on success. |
600 bool IncreaseWinInetConnections(DWORD connections); | 600 bool IncreaseWinInetConnections(DWORD connections); |
601 | 601 |
602 // Sets |profile_path| to the path for the Chrome Frame |profile_name| | 602 // Sets |profile_path| to the path for the Chrome Frame |profile_name| |
603 // profile. | 603 // profile. |
604 void GetChromeFrameProfilePath(const string16& profile_name, | 604 void GetChromeFrameProfilePath(const base::string16& profile_name, |
605 base::FilePath* profile_path); | 605 base::FilePath* profile_path); |
606 | 606 |
607 #endif // CHROME_FRAME_UTILS_H_ | 607 #endif // CHROME_FRAME_UTILS_H_ |
OLD | NEW |