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

Side by Side Diff: chrome/renderer/render_process_impl.cc

Issue 3057025: Altered the logic that determines when NaCl is enabled. Previously, we requi... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 months 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
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 "build/build_config.h" 5 #include "build/build_config.h"
6 6
7 #if defined(OS_WIN) 7 #if defined(OS_WIN)
8 #include <windows.h> 8 #include <windows.h>
9 #include <objidl.h> 9 #include <objidl.h>
10 #include <mlang.h> 10 #include <mlang.h>
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 177
178 if (command_line.HasSwitch(switches::kEnableWatchdog)) { 178 if (command_line.HasSwitch(switches::kEnableWatchdog)) {
179 // TODO(JAR): Need to implement renderer IO msgloop watchdog. 179 // TODO(JAR): Need to implement renderer IO msgloop watchdog.
180 } 180 }
181 181
182 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { 182 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) {
183 StatisticsRecorder::set_dump_on_exit(true); 183 StatisticsRecorder::set_dump_on_exit(true);
184 } 184 }
185 185
186 #ifndef DISABLE_NACL 186 #ifndef DISABLE_NACL
187 if (command_line.HasSwitch(switches::kInternalNaCl)) { 187 std::map<std::string, uintptr_t> funcs;
188 std::map<std::string, uintptr_t> funcs; 188 funcs["launch_nacl_process"] =
189 funcs["launch_nacl_process"] = 189 reinterpret_cast<uintptr_t>(LaunchNaClProcess);
190 reinterpret_cast<uintptr_t>(LaunchNaClProcess); 190 funcs["launch_nacl_process_multi_fd"] =
191 funcs["launch_nacl_process_multi_fd"] = 191 reinterpret_cast<uintptr_t>(LaunchNaClProcessMultiFD);
192 reinterpret_cast<uintptr_t>(LaunchNaClProcessMultiFD); 192 RegisterInternalNaClPlugin(funcs);
193 RegisterInternalNaClPlugin(funcs);
194 }
195 #endif 193 #endif
196 194
197 if (!command_line.HasSwitch(switches::kDisableByteRangeSupport)) { 195 if (!command_line.HasSwitch(switches::kDisableByteRangeSupport)) {
198 webkit_glue::SetMediaCacheEnabled(true); 196 webkit_glue::SetMediaCacheEnabled(true);
199 } 197 }
200 198
201 #if defined(OS_MACOSX) 199 #if defined(OS_MACOSX)
202 FilePath bundle_path = mac_util::MainAppBundlePath(); 200 FilePath bundle_path = mac_util::MainAppBundlePath();
203 201
204 initialized_media_library_ = 202 initialized_media_library_ =
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
389 } 387 }
390 388
391 void RenderProcessImpl::ClearTransportDIBCache() { 389 void RenderProcessImpl::ClearTransportDIBCache() {
392 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { 390 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) {
393 if (shared_mem_cache_[i]) { 391 if (shared_mem_cache_[i]) {
394 FreeTransportDIB(shared_mem_cache_[i]); 392 FreeTransportDIB(shared_mem_cache_[i]);
395 shared_mem_cache_[i] = NULL; 393 shared_mem_cache_[i] = NULL;
396 } 394 }
397 } 395 }
398 } 396 }
OLDNEW
« no previous file with comments | « chrome/common/extensions/extension.cc ('k') | chrome/renderer/render_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698