| OLD | NEW |
| 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 // TODO(JAR): Need to implement renderer IO msgloop watchdog. | 78 // TODO(JAR): Need to implement renderer IO msgloop watchdog. |
| 79 } | 79 } |
| 80 | 80 |
| 81 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { | 81 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { |
| 82 StatisticsRecorder::set_dump_on_exit(true); | 82 StatisticsRecorder::set_dump_on_exit(true); |
| 83 } | 83 } |
| 84 | 84 |
| 85 if (command_line.HasSwitch(switches::kInternalNaCl)) | 85 if (command_line.HasSwitch(switches::kInternalNaCl)) |
| 86 RegisterInternalNaClPlugin(RenderProcess::LaunchNaClProcess); | 86 RegisterInternalNaClPlugin(RenderProcess::LaunchNaClProcess); |
| 87 | 87 |
| 88 if (command_line.HasSwitch(switches::kEnableByteRangeSupport)) { |
| 89 webkit_glue::SetMediaCacheEnabled(); |
| 90 } |
| 91 |
| 88 FilePath module_path; | 92 FilePath module_path; |
| 89 initialized_media_library_ = | 93 initialized_media_library_ = |
| 90 PathService::Get(base::DIR_MODULE, &module_path) && | 94 PathService::Get(base::DIR_MODULE, &module_path) && |
| 91 media::InitializeMediaLibrary(module_path); | 95 media::InitializeMediaLibrary(module_path); |
| 92 } | 96 } |
| 93 | 97 |
| 94 RenderProcess::~RenderProcess() { | 98 RenderProcess::~RenderProcess() { |
| 95 // TODO(port) | 99 // TODO(port) |
| 96 // Try and limit what we pull in for our non-Win unit test bundle | 100 // Try and limit what we pull in for our non-Win unit test bundle |
| 97 #ifndef NDEBUG | 101 #ifndef NDEBUG |
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 257 } | 261 } |
| 258 | 262 |
| 259 void RenderProcess::ClearTransportDIBCache() { | 263 void RenderProcess::ClearTransportDIBCache() { |
| 260 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { | 264 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { |
| 261 if (shared_mem_cache_[i]) { | 265 if (shared_mem_cache_[i]) { |
| 262 FreeTransportDIB(shared_mem_cache_[i]); | 266 FreeTransportDIB(shared_mem_cache_[i]); |
| 263 shared_mem_cache_[i] = NULL; | 267 shared_mem_cache_[i] = NULL; |
| 264 } | 268 } |
| 265 } | 269 } |
| 266 } | 270 } |
| OLD | NEW |