diff options
author | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-05 15:34:00 +0000 |
---|---|---|
committer | darin@chromium.org <darin@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-08-05 15:34:00 +0000 |
commit | 0bea7254836d17e3f1e278cbd52e8b8816c49a48 (patch) | |
tree | eb16c01ad0143fad583cd60a87828fd90c94f61a /base/debug | |
parent | 93f3edc8adc1db9e3d1deebde0ec58d15b7e1a91 (diff) | |
download | chromium_src-0bea7254836d17e3f1e278cbd52e8b8816c49a48.zip chromium_src-0bea7254836d17e3f1e278cbd52e8b8816c49a48.tar.gz chromium_src-0bea7254836d17e3f1e278cbd52e8b8816c49a48.tar.bz2 |
Rename BASE_API to BASE_EXPORT.
R=rvargas
Review URL: http://codereview.chromium.org/7461141
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@95618 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/debug')
-rw-r--r-- | base/debug/alias.h | 4 | ||||
-rw-r--r-- | base/debug/debugger.h | 14 | ||||
-rw-r--r-- | base/debug/profiler.h | 10 | ||||
-rw-r--r-- | base/debug/stack_trace.h | 4 | ||||
-rw-r--r-- | base/debug/trace_event.h | 8 | ||||
-rw-r--r-- | base/debug/trace_event_win.h | 10 |
6 files changed, 25 insertions, 25 deletions
diff --git a/base/debug/alias.h b/base/debug/alias.h index fcf3653..4946e558 100644 --- a/base/debug/alias.h +++ b/base/debug/alias.h @@ -6,7 +6,7 @@ #define BASE_DEBUG_ALIAS_H_ #pragma once -#include "base/base_api.h" +#include "base/base_export.h" namespace base { namespace debug { @@ -14,7 +14,7 @@ namespace debug { // Make the optimizer think that var is aliased. This is to prevent it from // optimizing out variables that that would not otherwise be live at the point // of a potential crash. -void BASE_API Alias(const void* var); +void BASE_EXPORT Alias(const void* var); } // namespace debug } // namespace base diff --git a/base/debug/debugger.h b/base/debug/debugger.h index bb937a0..489007b 100644 --- a/base/debug/debugger.h +++ b/base/debug/debugger.h @@ -10,18 +10,18 @@ #define BASE_DEBUG_DEBUGGER_H #pragma once -#include "base/base_api.h" +#include "base/base_export.h" namespace base { namespace debug { // Starts the registered system-wide JIT debugger to attach it to specified // process. -BASE_API bool SpawnDebuggerOnProcess(unsigned process_id); +BASE_EXPORT 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. -BASE_API bool WaitForDebugger(int wait_seconds, bool silent); +BASE_EXPORT bool WaitForDebugger(int wait_seconds, bool silent); // Returns true if the given process is being run under a debugger. // @@ -30,18 +30,18 @@ BASE_API 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. -BASE_API bool BeingDebugged(); +BASE_EXPORT bool BeingDebugged(); // Break into the debugger, assumes a debugger is present. -BASE_API void BreakDebugger(); +BASE_EXPORT 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. -BASE_API void SetSuppressDebugUI(bool suppress); -BASE_API bool IsDebugUISuppressed(); +BASE_EXPORT void SetSuppressDebugUI(bool suppress); +BASE_EXPORT bool IsDebugUISuppressed(); } // namespace debug } // namespace base diff --git a/base/debug/profiler.h b/base/debug/profiler.h index 55c0c9f..a8f1297 100644 --- a/base/debug/profiler.h +++ b/base/debug/profiler.h @@ -8,7 +8,7 @@ #include <string> -#include "base/base_api.h" +#include "base/base_export.h" // The Profiler functions allow usage of the underlying sampling based // profiler. If the application has not been built with the necessary @@ -20,16 +20,16 @@ namespace debug { // Start profiling with the supplied name. // {pid} will be replaced by the process' pid and {count} will be replaced // by the count of the profile run (starts at 1 with each process). -BASE_API void StartProfiling(const std::string& name); +BASE_EXPORT void StartProfiling(const std::string& name); // Stop profiling and write out data. -BASE_API void StopProfiling(); +BASE_EXPORT void StopProfiling(); // Force data to be written to file. -BASE_API void FlushProfiling(); +BASE_EXPORT void FlushProfiling(); // Returns true if process is being profiled. -BASE_API bool BeingProfiled(); +BASE_EXPORT bool BeingProfiled(); } // namespace debug } // namespace base diff --git a/base/debug/stack_trace.h b/base/debug/stack_trace.h index acc7223..02cb01f 100644 --- a/base/debug/stack_trace.h +++ b/base/debug/stack_trace.h @@ -8,7 +8,7 @@ #include <iosfwd> -#include "base/base_api.h" +#include "base/base_export.h" #include "build/build_config.h" #if defined(OS_WIN) @@ -21,7 +21,7 @@ namespace debug { // A stacktrace can be helpful in debugging. For example, you can include a // stacktrace member in a object (probably around #ifndef NDEBUG) so that you // can later see where the given object was created from. -class BASE_API StackTrace { +class BASE_EXPORT StackTrace { public: // Creates a stacktrace from the current location. StackTrace(); diff --git a/base/debug/trace_event.h b/base/debug/trace_event.h index d1c7418..79690f1 100644 --- a/base/debug/trace_event.h +++ b/base/debug/trace_event.h @@ -302,7 +302,7 @@ enum TraceEventPhase { // Simple union of values. This is much lighter weight than base::Value, which // requires dynamic allocation and a vtable. To keep the trace runtime overhead // low, we want constant size storage here. -class BASE_API TraceValue { +class BASE_EXPORT TraceValue { public: enum Type { TRACE_TYPE_UNDEFINED, @@ -442,7 +442,7 @@ class TraceEvent { }; -class BASE_API TraceLog { +class BASE_EXPORT TraceLog { public: static TraceLog* GetInstance(); @@ -527,7 +527,7 @@ class BASE_API TraceLog { namespace internal { // Used by TRACE_EVENTx macro. Do not use directly. -class BASE_API TraceEndOnScopeClose { +class BASE_EXPORT TraceEndOnScopeClose { public: TraceEndOnScopeClose() : p_data_(NULL) {} ~TraceEndOnScopeClose() { @@ -556,7 +556,7 @@ class BASE_API TraceEndOnScopeClose { }; // Used by TRACE_EVENTx macro. Do not use directly. -class BASE_API TraceEndOnScopeCloseThreshold { +class BASE_EXPORT TraceEndOnScopeCloseThreshold { public: TraceEndOnScopeCloseThreshold() : p_data_(NULL) {} ~TraceEndOnScopeCloseThreshold() { diff --git a/base/debug/trace_event_win.h b/base/debug/trace_event_win.h index 6e6bcb4..c82782c 100644 --- a/base/debug/trace_event_win.h +++ b/base/debug/trace_event_win.h @@ -9,7 +9,7 @@ #include <string> -#include "base/base_api.h" +#include "base/base_export.h" #include "base/debug/trace_event.h" #include "base/win/event_trace_provider.h" @@ -22,7 +22,7 @@ namespace debug { // This EtwTraceProvider subclass implements ETW logging // for the macros above on Windows. -class BASE_API TraceEventETWProvider : public base::win::EtwTraceProvider { +class BASE_EXPORT TraceEventETWProvider : public base::win::EtwTraceProvider { public: // Start logging trace events. // This is a noop in this implementation. @@ -93,13 +93,13 @@ class BASE_API TraceEventETWProvider : public base::win::EtwTraceProvider { }; // The ETW trace provider GUID. -BASE_API extern const GUID kChromeTraceProviderName; +BASE_EXPORT extern const GUID kChromeTraceProviderName; // The ETW event class GUID for 32 bit events. -BASE_API extern const GUID kTraceEventClass32; +BASE_EXPORT extern const GUID kTraceEventClass32; // The ETW event class GUID for 64 bit events. -BASE_API extern const GUID kTraceEventClass64; +BASE_EXPORT extern const GUID kTraceEventClass64; // The ETW event types, IDs 0x00-0x09 are reserved, so start at 0x10. const base::win::EtwEventType kTraceEventTypeBegin = 0x10; |