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

Side by Side Diff: chrome/nacl/nacl_switches.cc

Issue 15957008: Move NaCl related switches to their own file. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 6 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 | « chrome/nacl/nacl_switches.h ('k') | chrome/renderer/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/nacl/nacl_switches.h"
6
7 #include "base/base_switches.h"
8 #include "base/command_line.h"
9
10 namespace switches {
11
12 // Disables the bundled PPAPI version of Flash.
13 const char kDisableBundledPpapiFlash[] = "disable-bundled-ppapi-flash";
Mark Seaborn 2013/05/29 16:03:13 This has nothing to do with NaCl. Flash doesn't r
14
15 // Runs the Native Client inside the renderer process and enables GPU plugin
16 // (internally adds lEnableGpuPlugin to the command line).
17 const char kEnableNaCl[] = "enable-nacl";
18
19 // Enables debugging via RSP over a socket.
20 const char kEnableNaClDebug[] = "enable-nacl-debug";
21
22 // Enables the installation and usage of Portable Native Client.
23 const char kEnablePnacl[] = "enable-pnacl";
24
25 // Causes the process to run as a NativeClient broker
26 // (used for launching NaCl loader processes on 64-bit Windows).
27 const char kNaClBrokerProcess[] = "nacl-broker";
28
29 // Uses NaCl manifest URL to choose whether NaCl program will be debugged by
30 // debug stub.
31 // Switch value format: [!]pattern1,pattern2,...,patternN. Each pattern uses
32 // the same syntax as patterns in Chrome extension manifest. The only difference
33 // is that * scheme matches all schemes instead of matching only http and https.
34 // If the value doesn't start with !, a program will be debugged if manifest URL
35 // matches any pattern. If the value starts with !, a program will be debugged
36 // if manifest URL does not match any pattern.
37 const char kNaClDebugMask[] = "nacl-debug-mask";
38
39 // Native Client GDB debugger for loader. It needs switches calculated
40 // at run time in order to work correctly. That's why NaClLoadCmdPrefix
41 // flag can't be used.
42 const char kNaClGdb[] = "nacl-gdb";
43
44 // GDB script to pass to the nacl-gdb debugger at startup.
45 const char kNaClGdbScript[] = "nacl-gdb-script";
46
47 // Causes the process to run as a NativeClient loader.
48 const char kNaClLoaderProcess[] = "nacl-loader";
49
50 // On POSIX only: the contents of this flag are prepended to the nacl-loader
51 // command line. Useful values might be "valgrind" or "xterm -e gdb --args".
52 const char kNaClLoaderCmdPrefix[] = "nacl-loader-cmd-prefix";
53
54 // Overrides the path to the location that PNaCl is installed.
55 const char kPnaclDir[] = "pnacl-dir";
56
57 // Forces the PPAPI version of Flash (if it's being used) to run in the
58 // renderer process rather than in a separate plugin process.
59 const char kPpapiFlashInProcess[] = "ppapi-flash-in-process";
60
61 // Use the PPAPI (Pepper) Flash found at the given path.
62 const char kPpapiFlashPath[] = "ppapi-flash-path";
63
64 // Report the given version for the PPAPI (Pepper) Flash. The version should be
65 // numbers separated by '.'s (e.g., "12.3.456.78"). If not specified, it
66 // defaults to "10.2.999.999".
67 const char kPpapiFlashVersion[] = "ppapi-flash-version";
68
69 // Runs the security test for the NaCl loader sandbox.
70 const char kTestNaClSandbox[] = "test-nacl-sandbox";
71 } // namespace switches
Mark Seaborn 2013/05/29 16:03:13 Nit: Add empty line before this for consistency wi
yael.aharon1 2013/05/29 16:13:37 Done.
OLDNEW
« no previous file with comments | « chrome/nacl/nacl_switches.h ('k') | chrome/renderer/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698