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 a class to load the main DLL of a Chrome process. | 5 // This file defines a class to load the main DLL of a Chrome process. |
6 | 6 |
7 #ifndef CHROME_APP_MAIN_DLL_LOADER_WIN_H_ | 7 #ifndef CHROME_APP_MAIN_DLL_LOADER_WIN_H_ |
8 #define CHROME_APP_MAIN_DLL_LOADER_WIN_H_ | 8 #define CHROME_APP_MAIN_DLL_LOADER_WIN_H_ |
9 | 9 |
10 #include <windows.h> // NOLINT | 10 #include <windows.h> // NOLINT |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 | 48 |
49 private: | 49 private: |
50 // Loads chrome.dll, populating |version| with the version of the DLL loaded | 50 // Loads chrome.dll, populating |version| with the version of the DLL loaded |
51 // and |module| with the path of the loaded DLL. Returns a reference to the | 51 // and |module| with the path of the loaded DLL. Returns a reference to the |
52 // module, or null on failure. | 52 // module, or null on failure. |
53 HMODULE Load(base::string16* version, base::FilePath* module); | 53 HMODULE Load(base::string16* version, base::FilePath* module); |
54 | 54 |
55 private: | 55 private: |
56 HMODULE dll_; | 56 HMODULE dll_; |
57 std::string process_type_; | 57 std::string process_type_; |
58 const bool metro_mode_; | |
59 }; | 58 }; |
60 | 59 |
61 // Factory for the MainDllLoader. Caller owns the pointer and should call | 60 // Factory for the MainDllLoader. Caller owns the pointer and should call |
62 // delete to free it. | 61 // delete to free it. |
63 MainDllLoader* MakeMainDllLoader(); | 62 MainDllLoader* MakeMainDllLoader(); |
64 | 63 |
65 #endif // CHROME_APP_MAIN_DLL_LOADER_WIN_H_ | 64 #endif // CHROME_APP_MAIN_DLL_LOADER_WIN_H_ |
OLD | NEW |