OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 #include "content/renderer/renderer_main_platform_delegate.h" | 5 #include "content/renderer/renderer_main_platform_delegate.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "content/common/injection_test_dll.h" | 10 #include "content/common/injection_test_dll.h" |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
55 // since we allow fail over to no desktop protection in low memory | 55 // since we allow fail over to no desktop protection in low memory |
56 // condition, this is not a big risk. | 56 // condition, this is not a big risk. |
57 NOTREACHED(); | 57 NOTREACHED(); |
58 } | 58 } |
59 } | 59 } |
60 } | 60 } |
61 | 61 |
62 } // namespace | 62 } // namespace |
63 | 63 |
64 RendererMainPlatformDelegate::RendererMainPlatformDelegate( | 64 RendererMainPlatformDelegate::RendererMainPlatformDelegate( |
65 const MainFunctionParams& parameters) | 65 const content::MainFunctionParams& parameters) |
66 : parameters_(parameters), | 66 : parameters_(parameters), |
67 sandbox_test_module_(NULL) { | 67 sandbox_test_module_(NULL) { |
68 } | 68 } |
69 | 69 |
70 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { | 70 RendererMainPlatformDelegate::~RendererMainPlatformDelegate() { |
71 } | 71 } |
72 | 72 |
73 void RendererMainPlatformDelegate::PlatformInitialize() { | 73 void RendererMainPlatformDelegate::PlatformInitialize() { |
74 // Be mindful of what resources you acquire here. They can be used by | 74 // Be mindful of what resources you acquire here. They can be used by |
75 // malicious code if the renderer gets compromised. | 75 // malicious code if the renderer gets compromised. |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 kRenderTestCall)); | 138 kRenderTestCall)); |
139 DCHECK(run_security_tests); | 139 DCHECK(run_security_tests); |
140 if (run_security_tests) { | 140 if (run_security_tests) { |
141 int test_count = 0; | 141 int test_count = 0; |
142 DVLOG(1) << "Running renderer security tests"; | 142 DVLOG(1) << "Running renderer security tests"; |
143 BOOL result = run_security_tests(&test_count); | 143 BOOL result = run_security_tests(&test_count); |
144 CHECK(result) << "Test number " << test_count << " has failed."; | 144 CHECK(result) << "Test number " << test_count << " has failed."; |
145 } | 145 } |
146 } | 146 } |
147 } | 147 } |
OLD | NEW |