Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/renderer/chrome_render_process_observer.h" | 5 #include "chrome/renderer/chrome_render_process_observer.h" |
| 6 | 6 |
| 7 #include <limits> | 7 #include <limits> |
| 8 #include <vector> | 8 #include <vector> |
| 9 | 9 |
| 10 #include "base/allocator/allocator_extension.h" | 10 #include "base/allocator/allocator_extension.h" |
| (...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 251 clear_cache_pending_(false), | 251 clear_cache_pending_(false), |
| 252 webkit_initialized_(false), | 252 webkit_initialized_(false), |
| 253 pending_cache_min_dead_capacity_(0), | 253 pending_cache_min_dead_capacity_(0), |
| 254 pending_cache_max_dead_capacity_(0), | 254 pending_cache_max_dead_capacity_(0), |
| 255 pending_cache_capacity_(kUnitializedCacheCapacity) { | 255 pending_cache_capacity_(kUnitializedCacheCapacity) { |
| 256 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 256 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 257 if (command_line.HasSwitch(switches::kEnableWatchdog)) { | 257 if (command_line.HasSwitch(switches::kEnableWatchdog)) { |
| 258 // TODO(JAR): Need to implement renderer IO msgloop watchdog. | 258 // TODO(JAR): Need to implement renderer IO msgloop watchdog. |
| 259 } | 259 } |
| 260 | 260 |
| 261 #if defined(ENABLE_AUTOFILL_DIALOG) | 261 #if defined(ENABLE_AUTOFILL_DIALOG) |
|
Ilya Sherman
2014/03/26 03:57:50
Is this #define still needed?
Evan Stade
2014/03/26 17:41:59
For now yes, I believe, for example it's false on
| |
| 262 bool enable_autofill = !command_line.HasSwitch( | 262 WebRuntimeFeatures::enableRequestAutocomplete(true); |
|
Ilya Sherman
2014/03/26 03:57:50
Is this method still needed?
Evan Stade
2014/03/26 17:41:59
Yes, as long as ENABLE_AUTOFILL_DIALOG exists
| |
| 263 autofill::switches::kDisableInteractiveAutocomplete); | |
| 264 WebRuntimeFeatures::enableRequestAutocomplete( | |
| 265 enable_autofill || | |
| 266 command_line.HasSwitch(switches::kEnableExperimentalWebPlatformFeatures)); | |
| 267 #endif | 263 #endif |
| 268 | 264 |
| 269 RenderThread* thread = RenderThread::Get(); | 265 RenderThread* thread = RenderThread::Get(); |
| 270 resource_delegate_.reset(new RendererResourceDelegate()); | 266 resource_delegate_.reset(new RendererResourceDelegate()); |
| 271 thread->SetResourceDispatcherDelegate(resource_delegate_.get()); | 267 thread->SetResourceDispatcherDelegate(resource_delegate_.get()); |
| 272 | 268 |
| 273 // Configure modules that need access to resources. | 269 // Configure modules that need access to resources. |
| 274 net::NetModule::SetResourceProvider(chrome_common_net::NetResourceProvider); | 270 net::NetModule::SetResourceProvider(chrome_common_net::NetResourceProvider); |
| 275 | 271 |
| 276 #if defined(OS_WIN) | 272 #if defined(OS_WIN) |
| (...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 406 if (clear_cache_pending_ && webkit_initialized_) { | 402 if (clear_cache_pending_ && webkit_initialized_) { |
| 407 clear_cache_pending_ = false; | 403 clear_cache_pending_ = false; |
| 408 WebCache::clear(); | 404 WebCache::clear(); |
| 409 } | 405 } |
| 410 } | 406 } |
| 411 | 407 |
| 412 const RendererContentSettingRules* | 408 const RendererContentSettingRules* |
| 413 ChromeRenderProcessObserver::content_setting_rules() const { | 409 ChromeRenderProcessObserver::content_setting_rules() const { |
| 414 return &content_setting_rules_; | 410 return &content_setting_rules_; |
| 415 } | 411 } |
| OLD | NEW |