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

Side by Side Diff: content/public/common/content_switches.cc

Issue 11053007: Make content shell support some testing flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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
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/public/common/content_switches.h" 5 #include "content/public/common/content_switches.h"
6 6
7 namespace switches { 7 namespace switches {
8 8
9 // By default, file:// URIs cannot read other file:// URIs. This is an 9 // By default, file:// URIs cannot read other file:// URIs. This is an
10 // override for developers who need the old behavior for testing. 10 // override for developers who need the old behavior for testing.
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
428 // Causes the GPU process to display a dialog on launch. 428 // Causes the GPU process to display a dialog on launch.
429 const char kGpuStartupDialog[] = "gpu-startup-dialog"; 429 const char kGpuStartupDialog[] = "gpu-startup-dialog";
430 430
431 // Passes gpu vendor_id from browser process to GPU process. 431 // Passes gpu vendor_id from browser process to GPU process.
432 const char kGpuVendorID[] = "gpu-vendor-id"; 432 const char kGpuVendorID[] = "gpu-vendor-id";
433 433
434 // Used in conjunction with kRendererProcess. This causes the process 434 // Used in conjunction with kRendererProcess. This causes the process
435 // to run as a guest renderer instead of a regular renderer. 435 // to run as a guest renderer instead of a regular renderer.
436 const char kGuestRenderer[] = "guest-renderer"; 436 const char kGuestRenderer[] = "guest-renderer";
437 437
438 // These mappings only apply to the host resolver.
439 const char kHostResolverRules[] = "host-resolver-rules";
440
438 // Ignores GPU blacklist. 441 // Ignores GPU blacklist.
439 const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist"; 442 const char kIgnoreGpuBlacklist[] = "ignore-gpu-blacklist";
440 443
441 // Run the GPU process as a thread in the browser process. 444 // Run the GPU process as a thread in the browser process.
442 const char kInProcessGPU[] = "in-process-gpu"; 445 const char kInProcessGPU[] = "in-process-gpu";
443 446
444 // Runs plugins inside the renderer process 447 // Runs plugins inside the renderer process
445 const char kInProcessPlugins[] = "in-process-plugins"; 448 const char kInProcessPlugins[] = "in-process-plugins";
446 449
447 // Runs WebGL inside the renderer process. 450 // Runs WebGL inside the renderer process.
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after
580 // content. The switch is intended only for tests. 583 // content. The switch is intended only for tests.
581 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading"; 584 const char kSkipGpuDataLoading[] = "skip-gpu-data-loading";
582 585
583 // GestureTapDown events are deferred by this many miillseconds before 586 // GestureTapDown events are deferred by this many miillseconds before
584 // sending them to the renderer. 587 // sending them to the renderer.
585 const char kTapDownDeferralTimeMs[] = "tap-down-deferral-time"; 588 const char kTapDownDeferralTimeMs[] = "tap-down-deferral-time";
586 589
587 // Runs the security test for the renderer sandbox. 590 // Runs the security test for the renderer sandbox.
588 const char kTestSandbox[] = "test-sandbox"; 591 const char kTestSandbox[] = "test-sandbox";
589 592
593 // Allows for forcing socket connections to http/https to use fixed ports.
594 const char kTestingFixedHttpPort[] = "testing-fixed-http-port";
595 const char kTestingFixedHttpsPort[] = "testing-fixed-https-port";
596
590 // Causes TRACE_EVENT flags to be recorded from startup. Optionally, can 597 // Causes TRACE_EVENT flags to be recorded from startup. Optionally, can
591 // specify the specific trace categories to include (e.g. 598 // specify the specific trace categories to include (e.g.
592 // --trace-startup=base,net) otherwise, all events are recorded. Setting this 599 // --trace-startup=base,net) otherwise, all events are recorded. Setting this
593 // flag results in the first call to BeginTracing() to receive all trace events 600 // flag results in the first call to BeginTracing() to receive all trace events
594 // since startup. In Chrome, you may find --trace-startup-file and 601 // since startup. In Chrome, you may find --trace-startup-file and
595 // --trace-startup-duration to control the auto-saving of the trace (not 602 // --trace-startup-duration to control the auto-saving of the trace (not
596 // supported in the base-only TraceLog component). 603 // supported in the base-only TraceLog component).
597 const char kTraceStartup[] = "trace-startup"; 604 const char kTraceStartup[] = "trace-startup";
598 605
599 // If supplied, sets the file which startup tracing will be stored into, if 606 // If supplied, sets the file which startup tracing will be stored into, if
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 // Sets the width and height above which a composited layer will get tiled. 714 // Sets the width and height above which a composited layer will get tiled.
708 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width"; 715 const char kMaxUntiledLayerWidth[] = "max-untiled-layer-width";
709 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height"; 716 const char kMaxUntiledLayerHeight[] = "max-untiled-layer-height";
710 717
711 const char kEnableFixedPositionCreatesStackingContext[] 718 const char kEnableFixedPositionCreatesStackingContext[]
712 = "enable-fixed-position-creates-stacking-context"; 719 = "enable-fixed-position-creates-stacking-context";
713 const char kDisableFixedPositionCreatesStackingContext[] 720 const char kDisableFixedPositionCreatesStackingContext[]
714 = "disable-fixed-position-creates-stacking-context"; 721 = "disable-fixed-position-creates-stacking-context";
715 722
716 } // namespace switches 723 } // namespace switches
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698