OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/child/pdf_child_init.h" | 5 #include "chrome/child/pdf_child_init.h" |
6 | 6 |
7 #include "base/files/file_path.h" | 7 #include "base/files/file_path.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/path_service.h" | 9 #include "base/path_service.h" |
| 10 #include "build/build_config.h" |
10 #include "chrome/common/chrome_paths.h" | 11 #include "chrome/common/chrome_paths.h" |
11 #include "content/public/child/child_thread.h" | 12 #include "content/public/child/child_thread.h" |
12 | 13 |
13 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
14 #include "base/win/iat_patch_function.h" | 15 #include "base/win/iat_patch_function.h" |
15 #endif | 16 #endif |
16 | 17 |
17 namespace chrome { | 18 namespace chrome { |
18 namespace { | 19 namespace { |
19 #if defined(OS_WIN) | 20 #if defined(OS_WIN) |
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
79 g_iat_patch_createdca.Patch(current_module_name, "gdi32.dll", "CreateDCA", | 80 g_iat_patch_createdca.Patch(current_module_name, "gdi32.dll", "CreateDCA", |
80 CreateDCAPatch); | 81 CreateDCAPatch); |
81 g_iat_patch_get_font_data.Patch(current_module_name, "gdi32.dll", | 82 g_iat_patch_get_font_data.Patch(current_module_name, "gdi32.dll", |
82 "GetFontData", GetFontDataPatch); | 83 "GetFontData", GetFontDataPatch); |
83 g_original_get_font_data = reinterpret_cast<GetFontDataPtr>( | 84 g_original_get_font_data = reinterpret_cast<GetFontDataPtr>( |
84 g_iat_patch_get_font_data.original_function()); | 85 g_iat_patch_get_font_data.original_function()); |
85 #endif // OS_WIN | 86 #endif // OS_WIN |
86 } | 87 } |
87 | 88 |
88 } // namespace chrome | 89 } // namespace chrome |
OLD | NEW |