Index: base/debug/debug_on_start_win.h |
=================================================================== |
--- base/debug/debug_on_start_win.h (revision 70360) |
+++ base/debug/debug_on_start_win.h (working copy) |
@@ -1,4 +1,4 @@ |
-// Copyright (c) 2006-2008 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. |
@@ -6,19 +6,24 @@ |
// line argument. When the command line argument is detected, it invokes the |
// debugger, if no system-wide debugger is registered, a debug break is done. |
-#ifndef BASE_DEBUG_ON_START_H_ |
-#define BASE_DEBUG_ON_START_H_ |
+#ifndef BASE_DEBUG_DEBUG_ON_START_WIN_H_ |
+#define BASE_DEBUG_DEBUG_ON_START_WIN_H_ |
#pragma once |
#include "base/basictypes.h" |
+#include "build/build_config.h" |
-// This only works on Windows. |
+// This only works on Windows. It's legal to include on other platforms, but |
+// will be a NOP. |
#if defined(OS_WIN) |
#ifndef DECLSPEC_SELECTANY |
#define DECLSPEC_SELECTANY __declspec(selectany) |
#endif |
+namespace base { |
+namespace debug { |
+ |
// Debug on start functions and data. |
class DebugOnStart { |
public: |
@@ -62,7 +67,10 @@ |
// Fix back the segment. |
#pragma data_seg(pop) |
+} // namespace debug |
+} // namespace base |
+ |
#endif // _WIN64 |
#endif // defined(OS_WIN) |
-#endif // BASE_DEBUG_ON_START_H_ |
+#endif // BASE_DEBUG_DEBUG_ON_START_WIN_H_ |