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 #include "chrome_frame/dll_redirector.h" | 5 #include "chrome_frame/dll_redirector.h" |
6 | 6 |
7 #include <aclapi.h> | 7 #include <aclapi.h> |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlsecurity.h> | 9 #include <atlsecurity.h> |
10 #include <sddl.h> | 10 #include <sddl.h> |
11 | 11 |
12 #include "base/file_version_info.h" | 12 #include "base/file_version_info.h" |
13 #include "base/files/file_path.h" | 13 #include "base/files/file_path.h" |
14 #include "base/logging.h" | 14 #include "base/logging.h" |
15 #include "base/path_service.h" | 15 #include "base/path_service.h" |
16 #include "base/shared_memory.h" | 16 #include "base/shared_memory.h" |
17 #include "base/string_util.h" | 17 #include "base/strings/string_util.h" |
18 #include "base/strings/utf_string_conversions.h" | 18 #include "base/strings/utf_string_conversions.h" |
19 #include "base/version.h" | 19 #include "base/version.h" |
20 #include "base/win/windows_version.h" | 20 #include "base/win/windows_version.h" |
21 #include "chrome_frame/utils.h" | 21 #include "chrome_frame/utils.h" |
22 | 22 |
23 const wchar_t kSharedMemoryName[] = L"ChromeFrameVersionBeacon_"; | 23 const wchar_t kSharedMemoryName[] = L"ChromeFrameVersionBeacon_"; |
24 const uint32 kSharedMemorySize = 128; | 24 const uint32 kSharedMemorySize = 128; |
25 const uint32 kSharedMemoryLockTimeoutMs = 1000; | 25 const uint32 kSharedMemoryLockTimeoutMs = 1000; |
26 | 26 |
27 // static | 27 // static |
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 hmodule = LoadLibrary(module_path.value().c_str()); | 292 hmodule = LoadLibrary(module_path.value().c_str()); |
293 if (hmodule == NULL) { | 293 if (hmodule == NULL) { |
294 DPLOG(ERROR) << "Could not load reported module version " | 294 DPLOG(ERROR) << "Could not load reported module version " |
295 << version->GetString(); | 295 << version->GetString(); |
296 } | 296 } |
297 } else { | 297 } else { |
298 DPLOG(FATAL) << "Failed to get module file name"; | 298 DPLOG(FATAL) << "Failed to get module file name"; |
299 } | 299 } |
300 return hmodule; | 300 return hmodule; |
301 } | 301 } |
OLD | NEW |