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 // This file defines utility functions that can report details about the | 5 // This file defines utility functions that can report details about the |
6 // host operating environment. | 6 // host operating environment. |
7 | 7 |
8 #ifndef CHROME_APP_CLIENT_UTIL_H_ | 8 #ifndef CHROME_APP_CLIENT_UTIL_H_ |
9 #define CHROME_APP_CLIENT_UTIL_H_ | 9 #define CHROME_APP_CLIENT_UTIL_H_ |
10 | 10 |
11 #include <windows.h> | 11 #include <windows.h> |
12 | 12 |
13 #include "base/string16.h" | 13 #include "base/strings/string16.h" |
14 | 14 |
15 namespace sandbox { | 15 namespace sandbox { |
16 struct SandboxInterfaceInfo; | 16 struct SandboxInterfaceInfo; |
17 } | 17 } |
18 | 18 |
19 // Gets the path of the current exe with a trailing backslash. | 19 // Gets the path of the current exe with a trailing backslash. |
20 string16 GetExecutablePath(); | 20 string16 GetExecutablePath(); |
21 | 21 |
22 // Implements the common aspects of loading chrome.dll for both chrome and | 22 // Implements the common aspects of loading chrome.dll for both chrome and |
23 // chromium scenarios, which are in charge of implementing two abstract | 23 // chromium scenarios, which are in charge of implementing two abstract |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 private: | 63 private: |
64 // Chrome.dll handle. | 64 // Chrome.dll handle. |
65 HMODULE dll_; | 65 HMODULE dll_; |
66 }; | 66 }; |
67 | 67 |
68 // Factory for the MainDllLoader. Caller owns the pointer and should call | 68 // Factory for the MainDllLoader. Caller owns the pointer and should call |
69 // delete to free it. | 69 // delete to free it. |
70 MainDllLoader* MakeMainDllLoader(); | 70 MainDllLoader* MakeMainDllLoader(); |
71 | 71 |
72 #endif // CHROME_APP_CLIENT_UTIL_H_ | 72 #endif // CHROME_APP_CLIENT_UTIL_H_ |
OLD | NEW |