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 "content/renderer/renderer_main_platform_delegate.h" | 5 #include "content/renderer/renderer_main_platform_delegate.h" |
6 | 6 |
7 #include <signal.h> | 7 #include <signal.h> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/win/win_util.h" | 12 #include "base/win/win_util.h" |
13 #include "content/common/injection_test_dll.h" | 13 #include "content/common/injection_test_dll.h" |
14 #include "content/public/common/content_switches.h" | 14 #include "content/public/common/content_switches.h" |
15 #include "content/public/renderer/render_thread.h" | 15 #include "content/public/renderer/render_thread.h" |
16 #include "sandbox/src/sandbox.h" | 16 #include "sandbox/win/src/sandbox.h" |
17 #include "skia/ext/skia_sandbox_support_win.h" | 17 #include "skia/ext/skia_sandbox_support_win.h" |
18 #include "unicode/timezone.h" | 18 #include "unicode/timezone.h" |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // In order to have Theme support, we need to connect to the theme service. | 22 // In order to have Theme support, we need to connect to the theme service. |
23 // This needs to be done before we lock down the renderer. Officially this | 23 // This needs to be done before we lock down the renderer. Officially this |
24 // can be done with OpenThemeData() but it fails unless you pass a valid | 24 // can be done with OpenThemeData() but it fails unless you pass a valid |
25 // window at least the first time. Interestingly, the very act of creating a | 25 // window at least the first time. Interestingly, the very act of creating a |
26 // window also sets the connection to the theme service. | 26 // window also sets the connection to the theme service. |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 kRenderTestCall)); | 179 kRenderTestCall)); |
180 DCHECK(run_security_tests); | 180 DCHECK(run_security_tests); |
181 if (run_security_tests) { | 181 if (run_security_tests) { |
182 int test_count = 0; | 182 int test_count = 0; |
183 DVLOG(1) << "Running renderer security tests"; | 183 DVLOG(1) << "Running renderer security tests"; |
184 BOOL result = run_security_tests(&test_count); | 184 BOOL result = run_security_tests(&test_count); |
185 CHECK(result) << "Test number " << test_count << " has failed."; | 185 CHECK(result) << "Test number " << test_count << " has failed."; |
186 } | 186 } |
187 } | 187 } |
188 } | 188 } |
OLD | NEW |