summaryrefslogtreecommitdiffstats
path: root/base/debug/debugger.h
diff options
context:
space:
mode:
authorrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-25 18:48:03 +0000
committerrvargas@google.com <rvargas@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-03-25 18:48:03 +0000
commit26fbf80ccd8269a6227a7124e9563283da85551a (patch)
tree69fef8a1cea0ac6d5e78322e18033091860d46a6 /base/debug/debugger.h
parent90509cbdde392aa218771f6673b9b5a6600c2b57 (diff)
downloadchromium_src-26fbf80ccd8269a6227a7124e9563283da85551a.zip
chromium_src-26fbf80ccd8269a6227a7124e9563283da85551a.tar.gz
chromium_src-26fbf80ccd8269a6227a7124e9563283da85551a.tar.bz2
Base: A few more files using BASE_API (for base.dll)
BUG=76996 TEST=none Review URL: http://codereview.chromium.org/6736019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@79427 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/debug/debugger.h')
-rw-r--r--base/debug/debugger.h16
1 files changed, 9 insertions, 7 deletions
diff --git a/base/debug/debugger.h b/base/debug/debugger.h
index 77bde0d..bb937a0 100644
--- a/base/debug/debugger.h
+++ b/base/debug/debugger.h
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -10,16 +10,18 @@
#define BASE_DEBUG_DEBUGGER_H
#pragma once
+#include "base/base_api.h"
+
namespace base {
namespace debug {
// Starts the registered system-wide JIT debugger to attach it to specified
// process.
-bool SpawnDebuggerOnProcess(unsigned process_id);
+BASE_API bool SpawnDebuggerOnProcess(unsigned process_id);
// Waits wait_seconds seconds for a debugger to attach to the current process.
// When silent is false, an exception is thrown when a debugger is detected.
-bool WaitForDebugger(int wait_seconds, bool silent);
+BASE_API bool WaitForDebugger(int wait_seconds, bool silent);
// Returns true if the given process is being run under a debugger.
//
@@ -28,18 +30,18 @@ bool WaitForDebugger(int wait_seconds, bool silent);
//
// WARNING: Because of this, on OS X, a call MUST be made to this function
// BEFORE the sandbox is enabled.
-bool BeingDebugged();
+BASE_API bool BeingDebugged();
// Break into the debugger, assumes a debugger is present.
-void BreakDebugger();
+BASE_API void BreakDebugger();
// Used in test code, this controls whether showing dialogs and breaking into
// the debugger is suppressed for debug errors, even in debug mode (normally
// release mode doesn't do this stuff -- this is controlled separately).
// Normally UI is not suppressed. This is normally used when running automated
// tests where we want a crash rather than a dialog or a debugger.
-void SetSuppressDebugUI(bool suppress);
-bool IsDebugUISuppressed();
+BASE_API void SetSuppressDebugUI(bool suppress);
+BASE_API bool IsDebugUISuppressed();
} // namespace debug
} // namespace base