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

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

Issue 267132: Http Cache: Enable byte-range support by default.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 2 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/chrome_switches.cc ('k') | net/http/http_cache.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) 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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 84
85 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) { 85 if (command_line.HasSwitch(switches::kDumpHistogramsOnExit)) {
86 StatisticsRecorder::set_dump_on_exit(true); 86 StatisticsRecorder::set_dump_on_exit(true);
87 } 87 }
88 88
89 #ifndef DISABLE_NACL 89 #ifndef DISABLE_NACL
90 if (command_line.HasSwitch(switches::kInternalNaCl)) 90 if (command_line.HasSwitch(switches::kInternalNaCl))
91 RegisterInternalNaClPlugin(RenderProcess::LaunchNaClProcess); 91 RegisterInternalNaClPlugin(RenderProcess::LaunchNaClProcess);
92 #endif 92 #endif
93 93
94 if (command_line.HasSwitch(switches::kEnableByteRangeSupport)) { 94 if (!command_line.HasSwitch(switches::kDisableByteRangeSupport)) {
95 webkit_glue::SetMediaCacheEnabled(true); 95 webkit_glue::SetMediaCacheEnabled(true);
96 } 96 }
97 97
98 #if defined(OS_MACOSX) 98 #if defined(OS_MACOSX)
99 FilePath bundle_path = mac_util::MainAppBundlePath(); 99 FilePath bundle_path = mac_util::MainAppBundlePath();
100 100
101 initialized_media_library_ = 101 initialized_media_library_ =
102 media::InitializeMediaLibrary(bundle_path.Append("Libraries")); 102 media::InitializeMediaLibrary(bundle_path.Append("Libraries"));
103 #else 103 #else
104 FilePath module_path; 104 FilePath module_path;
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 } 283 }
284 284
285 void RenderProcess::ClearTransportDIBCache() { 285 void RenderProcess::ClearTransportDIBCache() {
286 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) { 286 for (size_t i = 0; i < arraysize(shared_mem_cache_); ++i) {
287 if (shared_mem_cache_[i]) { 287 if (shared_mem_cache_[i]) {
288 FreeTransportDIB(shared_mem_cache_[i]); 288 FreeTransportDIB(shared_mem_cache_[i]);
289 shared_mem_cache_[i] = NULL; 289 shared_mem_cache_[i] = NULL;
290 } 290 }
291 } 291 }
292 } 292 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_switches.cc ('k') | net/http/http_cache.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698