Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(172)

Side by Side Diff: content/renderer/renderer_main_platform_delegate_win.cc

Issue 8387039: Move content_restriction.h and main_function_params.h to content/public/common, and put them in t... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « content/renderer/renderer_main_platform_delegate_mac.mm ('k') | content/shell/shell_browser_main.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698