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

Unified Diff: base/debug/debug_on_start_win.h

Issue 5984007: Move base/debug_on_start to base/debugger and rename it to be _win since it... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 9 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/base_switches.cc ('k') | base/debug/debug_on_start_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_
« no previous file with comments | « base/base_switches.cc ('k') | base/debug/debug_on_start_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698