Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1026)

Side by Side Diff: chrome_frame/utils.h

Issue 10197011: Share the "get CF profile dir" code between ChromeFramePlugin and chrome_frame_test_utils.h. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 603 matching lines...) Expand 10 before | Expand all | Expand 10 after
614 // Returns true if ChromeFrame is the currently loaded document. 614 // Returns true if ChromeFrame is the currently loaded document.
615 bool IsChromeFrameDocument(IWebBrowser2* web_browser); 615 bool IsChromeFrameDocument(IWebBrowser2* web_browser);
616 616
617 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the 617 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the
618 // value passed in. This is only done if the existing connection limit is 618 // value passed in. This is only done if the existing connection limit is
619 // lesser than the connection limit passed in. This function attempts to 619 // lesser than the connection limit passed in. This function attempts to
620 // increase the connection count once per process. 620 // increase the connection count once per process.
621 // Returns true on success. 621 // Returns true on success.
622 bool IncreaseWinInetConnections(DWORD connections); 622 bool IncreaseWinInetConnections(DWORD connections);
623 623
624 // Sets |profile_path| to the path for the Chrome Frame |profile_name|
625 // profile.
626 void GetChromeFrameProfilePath(const std::wstring& profile_name,
robertshield 2012/05/02 20:05:13 Any reason not to use string16?
Jói 2012/05/03 11:41:52 Yes, laziness. Fixed now :)
627 FilePath* profile_path);
628
624 #endif // CHROME_FRAME_UTILS_H_ 629 #endif // CHROME_FRAME_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698