ipc/chromium/src/chrome/common/debug_flags.h

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 // Copyright (c) 2006-2008 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.
     5 #ifndef CHROME_COMMON_DEBUG_FLAGS_H__
     6 #define CHROME_COMMON_DEBUG_FLAGS_H__
     8 #include "chrome/common/child_process_info.h"
    10 class CommandLine;
    12 class DebugFlags {
    13  public:
    15   // Updates the command line arguments with debug-related flags. If
    16   // debug flags have been used with this process, they will be
    17   // filtered and added to command_line as needed. is_in_sandbox must
    18   // be true if the child process will be in a sandbox.
    19   //
    20   // Returns true if the caller should "help" the child process by
    21   // calling the JIT debugger on it. It may only happen if
    22   // is_in_sandbox is true.
    23   static bool ProcessDebugFlags(CommandLine* command_line,
    24                                 ChildProcessInfo::ProcessType type,
    25                                 bool is_in_sandbox);
    26 };
    28 #endif  // CHROME_COMMON_DEBUG_FLAGS_H__

mercurial