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

Side by Side Diff: content/browser/web_contents/web_contents_impl.cc

Issue 12223082: Add a flag for enabling the threaded parser (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Add a flag for enabling the threaded parser Created 7 years, 10 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
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('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) 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 "content/browser/web_contents/web_contents_impl.h" 5 #include "content/browser/web_contents/web_contents_impl.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
(...skipping 514 matching lines...) Expand 10 before | Expand all | Expand 10 after
525 prefs.css_sticky_position_enabled = 525 prefs.css_sticky_position_enabled =
526 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 526 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
527 prefs.css_shaders_enabled = 527 prefs.css_shaders_enabled =
528 command_line.HasSwitch(switches::kEnableCssShaders); 528 command_line.HasSwitch(switches::kEnableCssShaders);
529 prefs.css_variables_enabled = 529 prefs.css_variables_enabled =
530 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 530 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
531 prefs.css_grid_layout_enabled = 531 prefs.css_grid_layout_enabled =
532 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures); 532 command_line.HasSwitch(switches::kEnableExperimentalWebKitFeatures);
533 prefs.record_rendering_stats = 533 prefs.record_rendering_stats =
534 command_line.HasSwitch(switches::kEnableGpuBenchmarking); 534 command_line.HasSwitch(switches::kEnableGpuBenchmarking);
535 prefs.threaded_html_parser =
536 command_line.HasSwitch(switches::kEnableThreadedHTMLParser);
535 537
536 bool touch_device_present = false; 538 bool touch_device_present = false;
537 touch_device_present = ui::IsTouchDevicePresent(); 539 touch_device_present = ui::IsTouchDevicePresent();
538 const std::string touch_enabled_switch = 540 const std::string touch_enabled_switch =
539 command_line.HasSwitch(switches::kTouchEvents) ? 541 command_line.HasSwitch(switches::kTouchEvents) ?
540 command_line.GetSwitchValueASCII(switches::kTouchEvents) : 542 command_line.GetSwitchValueASCII(switches::kTouchEvents) :
541 switches::kTouchEventsAuto; 543 switches::kTouchEventsAuto;
542 544
543 if (touch_enabled_switch.empty() || 545 if (touch_enabled_switch.empty() ||
544 touch_enabled_switch == switches::kTouchEventsEnabled) { 546 touch_enabled_switch == switches::kTouchEventsEnabled) {
(...skipping 2987 matching lines...) Expand 10 before | Expand all | Expand 10 after
3532 3534
3533 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() const { 3535 BrowserPluginGuest* WebContentsImpl::GetBrowserPluginGuest() const {
3534 return browser_plugin_guest_.get(); 3536 return browser_plugin_guest_.get();
3535 } 3537 }
3536 3538
3537 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() const { 3539 BrowserPluginEmbedder* WebContentsImpl::GetBrowserPluginEmbedder() const {
3538 return browser_plugin_embedder_.get(); 3540 return browser_plugin_embedder_.get();
3539 } 3541 }
3540 3542
3541 } // namespace content 3543 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698