summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-16 22:07:38 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-16 22:07:38 +0000
commita6decd19be6da302b1ed193a73183dc866b6d180 (patch)
treeb9768a40354eefdae2684a183206aa9cf330ffcb /chrome
parentbf1cc89221371027ea0662c1db671097048b2490 (diff)
downloadchromium_src-a6decd19be6da302b1ed193a73183dc866b6d180.zip
chromium_src-a6decd19be6da302b1ed193a73183dc866b6d180.tar.gz
chromium_src-a6decd19be6da302b1ed193a73183dc866b6d180.tar.bz2
Http Cache: Enable byte-range support by default.
The command line parameter to modify the behavior changes from --enable-byte-range-support to --disable-byte-range-support BUG=24989 TEST= current tests Review URL: http://codereview.chromium.org/267132 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29337 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/net/chrome_url_request_context.cc12
-rw-r--r--chrome/browser/renderer_host/browser_render_process_host.cc2
-rw-r--r--chrome/common/chrome_switches.cc4
-rw-r--r--chrome/common/chrome_switches.h2
-rw-r--r--chrome/renderer/render_process.cc2
5 files changed, 11 insertions, 11 deletions
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index 7d713d8..368e95e 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -133,8 +133,8 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateOriginal(
context->ssl_config_service_,
disk_cache_path, cache_size);
- if (command_line.HasSwitch(switches::kEnableByteRangeSupport))
- cache->set_enable_range_support(true);
+ if (command_line.HasSwitch(switches::kDisableByteRangeSupport))
+ cache->set_enable_range_support(false);
bool record_mode = chrome::kRecordModeEnabled &&
command_line.HasSwitch(switches::kRecordMode);
@@ -235,8 +235,8 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateOffTheRecord(
context->http_transaction_factory_ = cache;
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableByteRangeSupport))
- cache->set_enable_range_support(true);
+ switches::kDisableByteRangeSupport))
+ cache->set_enable_range_support(false);
// The kWininetFtp switch is Windows specific because we have two FTP
// implementations on Windows.
@@ -308,8 +308,8 @@ ChromeURLRequestContext* ChromeURLRequestContext::CreateRequestContextForMedia(
}
if (CommandLine::ForCurrentProcess()->HasSwitch(
- switches::kEnableByteRangeSupport))
- cache->set_enable_range_support(true);
+ switches::kDisableByteRangeSupport))
+ cache->set_enable_range_support(false);
cache->set_type(net::MEDIA_CACHE);
context->http_transaction_factory_ = cache;
diff --git a/chrome/browser/renderer_host/browser_render_process_host.cc b/chrome/browser/renderer_host/browser_render_process_host.cc
index d395f08..8ad39ad 100644
--- a/chrome/browser/renderer_host/browser_render_process_host.cc
+++ b/chrome/browser/renderer_host/browser_render_process_host.cc
@@ -521,7 +521,7 @@ void BrowserRenderProcessHost::PropogateBrowserCommandLineToRenderer(
switches::kEnableBenchmarking,
switches::kInternalNaCl,
switches::kEnableDatabases,
- switches::kEnableByteRangeSupport,
+ switches::kDisableByteRangeSupport,
switches::kEnableWebSockets,
};
diff --git a/chrome/common/chrome_switches.cc b/chrome/common/chrome_switches.cc
index 4003003..f9413b4 100644
--- a/chrome/common/chrome_switches.cc
+++ b/chrome/common/chrome_switches.cc
@@ -626,8 +626,8 @@ const char kCookiePipe[] = "cookie-pipe";
const char kEnableGView[] = "enable-gview";
#endif
-// Enable experimental support for cached byte-ranges.
-const char kEnableByteRangeSupport[] = "enable-byte-range-support";
+// Disable support for cached byte-ranges.
+const char kDisableByteRangeSupport[] = "disable-byte-range-support";
// Explicitly allow additional ports using a comma separated list of port
// numbers.
diff --git a/chrome/common/chrome_switches.h b/chrome/common/chrome_switches.h
index 1b54673c..9920df2 100644
--- a/chrome/common/chrome_switches.h
+++ b/chrome/common/chrome_switches.h
@@ -250,7 +250,7 @@ extern const char kCookiePipe[];
extern const char kEnableGView[];
#endif
-extern const char kEnableByteRangeSupport[];
+extern const char kDisableByteRangeSupport[];
extern const char kExplicitlyAllowedPorts[];
diff --git a/chrome/renderer/render_process.cc b/chrome/renderer/render_process.cc
index 7aa36c4..78bd935 100644
--- a/chrome/renderer/render_process.cc
+++ b/chrome/renderer/render_process.cc
@@ -91,7 +91,7 @@ RenderProcess::RenderProcess()
RegisterInternalNaClPlugin(RenderProcess::LaunchNaClProcess);
#endif
- if (command_line.HasSwitch(switches::kEnableByteRangeSupport)) {
+ if (!command_line.HasSwitch(switches::kDisableByteRangeSupport)) {
webkit_glue::SetMediaCacheEnabled(true);
}