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

Side by Side Diff: chrome_frame/utils.h

Issue 12163003: Add FilePath to base namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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
« no previous file with comments | « chrome_frame/test_utils.h ('k') | chromeos/chromeos_test_utils.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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>
11 #include <wininet.h> 11 #include <wininet.h>
12 #include <string> 12 #include <string>
13 #include <vector> 13 #include <vector>
14 14
15 #include "base/basictypes.h" 15 #include "base/basictypes.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/metrics/histogram.h" 17 #include "base/metrics/histogram.h"
18 #include "base/string16.h" 18 #include "base/string16.h"
19 #include "base/win/scoped_comptr.h" 19 #include "base/win/scoped_comptr.h"
20 #include "googleurl/src/gurl.h" 20 #include "googleurl/src/gurl.h"
21 #include "ui/gfx/rect.h" 21 #include "ui/gfx/rect.h"
22 22
23 class FilePath;
24 class RegistryListPreferencesHolder; 23 class RegistryListPreferencesHolder;
25 interface IBrowserService; 24 interface IBrowserService;
26 interface IWebBrowser2; 25 interface IWebBrowser2;
27 struct ContextMenuModel; 26 struct ContextMenuModel;
28 27
28 namespace base {
29 class FilePath;
30 }
31
29 // utils.h : Various utility functions and classes 32 // utils.h : Various utility functions and classes
30 extern const char kGCFProtocol[]; 33 extern const char kGCFProtocol[];
31 34
32 extern const wchar_t kAllowUnsafeURLs[]; 35 extern const wchar_t kAllowUnsafeURLs[];
33 extern const wchar_t kChromeContentPrefix[]; 36 extern const wchar_t kChromeContentPrefix[];
34 extern const wchar_t kChromeFrameAccessibleMode[]; 37 extern const wchar_t kChromeFrameAccessibleMode[];
35 extern const wchar_t kChromeFrameAttachTabPattern[]; 38 extern const wchar_t kChromeFrameAttachTabPattern[];
36 extern const wchar_t kChromeFrameConfigKey[]; 39 extern const wchar_t kChromeFrameConfigKey[];
37 extern const wchar_t kChromeFrameHeadlessMode[]; 40 extern const wchar_t kChromeFrameHeadlessMode[];
38 extern const wchar_t kChromeFrameUnpinnedMode[]; 41 extern const wchar_t kChromeFrameUnpinnedMode[];
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
200 // will be returned. 203 // will be returned.
201 // 204 //
202 // Versions newer than the newest supported version are reported as the newest 205 // Versions newer than the newest supported version are reported as the newest
203 // supported version. 206 // supported version.
204 IEVersion GetIEVersion(); 207 IEVersion GetIEVersion();
205 208
206 // Returns the actual major version of the IE in which the current process is 209 // Returns the actual major version of the IE in which the current process is
207 // hosted. Returns 0 if the current process is not IE or any other error occurs. 210 // hosted. Returns 0 if the current process is not IE or any other error occurs.
208 uint32 GetIEMajorVersion(); 211 uint32 GetIEMajorVersion();
209 212
210 FilePath GetIETemporaryFilesFolder(); 213 base::FilePath GetIETemporaryFilesFolder();
211 214
212 // Retrieves the file version from a module handle without extra round trips 215 // Retrieves the file version from a module handle without extra round trips
213 // to the disk (as happens with the regular GetFileVersionInfo API). 216 // to the disk (as happens with the regular GetFileVersionInfo API).
214 // 217 //
215 // @param module A handle to the module for which to retrieve the version info. 218 // @param module A handle to the module for which to retrieve the version info.
216 // @param high On successful return holds the most significant part of the file 219 // @param high On successful return holds the most significant part of the file
217 // version. Must be non-null. 220 // version. Must be non-null.
218 // @param low On successful return holds the least significant part of the file 221 // @param low On successful return holds the least significant part of the file
219 // version. May be NULL. 222 // version. May be NULL.
220 // @returns true if the version info was successfully retrieved. 223 // @returns true if the version info was successfully retrieved.
(...skipping 373 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the 597 // Increases the wininet connection limit for HTTP 1.0/1.1 connections to the
595 // value passed in. This is only done if the existing connection limit is 598 // value passed in. This is only done if the existing connection limit is
596 // lesser than the connection limit passed in. This function attempts to 599 // lesser than the connection limit passed in. This function attempts to
597 // increase the connection count once per process. 600 // increase the connection count once per process.
598 // Returns true on success. 601 // Returns true on success.
599 bool IncreaseWinInetConnections(DWORD connections); 602 bool IncreaseWinInetConnections(DWORD connections);
600 603
601 // Sets |profile_path| to the path for the Chrome Frame |profile_name| 604 // Sets |profile_path| to the path for the Chrome Frame |profile_name|
602 // profile. 605 // profile.
603 void GetChromeFrameProfilePath(const string16& profile_name, 606 void GetChromeFrameProfilePath(const string16& profile_name,
604 FilePath* profile_path); 607 base::FilePath* profile_path);
605 608
606 #endif // CHROME_FRAME_UTILS_H_ 609 #endif // CHROME_FRAME_UTILS_H_
OLDNEW
« no previous file with comments | « chrome_frame/test_utils.h ('k') | chromeos/chromeos_test_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698