OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2011 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 #pragma once | 10 #pragma once |
11 | 11 |
12 #include <windows.h> | 12 #include <windows.h> |
13 #include <string> | 13 #include <string> |
14 | 14 |
15 namespace sandbox { | 15 namespace sandbox { |
16 union SandboxInterfaceInfo; | 16 struct SandboxInterfaceInfo; |
17 } | 17 } |
18 | 18 |
19 // Implements the common aspects of loading chrome.dll for both chrome and | 19 // Implements the common aspects of loading chrome.dll for both chrome and |
20 // chromium scenarios, which are in charge of implementing two abstract | 20 // chromium scenarios, which are in charge of implementing two abstract |
21 // methods: GetRegistryPath() and OnBeforeLaunch(). | 21 // methods: GetRegistryPath() and OnBeforeLaunch(). |
22 class MainDllLoader { | 22 class MainDllLoader { |
23 public: | 23 public: |
24 MainDllLoader(); | 24 MainDllLoader(); |
25 virtual ~MainDllLoader(); | 25 virtual ~MainDllLoader(); |
26 | 26 |
(...skipping 26 matching lines...) Expand all Loading... |
53 private: | 53 private: |
54 // Chrome.dll handle. | 54 // Chrome.dll handle. |
55 HMODULE dll_; | 55 HMODULE dll_; |
56 }; | 56 }; |
57 | 57 |
58 // Factory for the MainDllLoader. Caller owns the pointer and should call | 58 // Factory for the MainDllLoader. Caller owns the pointer and should call |
59 // delete to free it. | 59 // delete to free it. |
60 MainDllLoader* MakeMainDllLoader(); | 60 MainDllLoader* MakeMainDllLoader(); |
61 | 61 |
62 #endif // CHROME_APP_CLIENT_UTIL_H_ | 62 #endif // CHROME_APP_CLIENT_UTIL_H_ |
OLD | NEW |