summaryrefslogtreecommitdiffstats
path: root/chromium/base/x11/x11_error_tracker.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/base/x11/x11_error_tracker.h')
-rw-r--r--chromium/base/x11/x11_error_tracker.h38
1 files changed, 0 insertions, 38 deletions
diff --git a/chromium/base/x11/x11_error_tracker.h b/chromium/base/x11/x11_error_tracker.h
deleted file mode 100644
index 5542f52a056..00000000000
--- a/chromium/base/x11/x11_error_tracker.h
+++ /dev/null
@@ -1,38 +0,0 @@
-// Copyright 2013 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.
-
-#ifndef BASE_X11_X11_ERROR_TRACKER_H_
-#define BASE_X11_X11_ERROR_TRACKER_H_
-
-#include <X11/Xlib.h>
-
-#include "base/base_export.h"
-#include "base/basictypes.h"
-
-namespace base {
-
-// X11ErrorTracker catches X11 errors in a non-fatal way. It does so by
-// temporarily changing the X11 error handler. The old error handler is
-// restored when the tracker is destroyed.
-class BASE_EXPORT X11ErrorTracker {
- public:
- X11ErrorTracker();
- ~X11ErrorTracker();
-
- // Returns whether an X11 error happened since this function was last called
- // (or since the creation of the tracker). This is potentially expensive,
- // since this causes a sync with the X server.
- bool FoundNewError();
-
- private:
-#if !defined(TOOLKIT_GTK)
- XErrorHandler old_handler_;
-#endif
-
- DISALLOW_COPY_AND_ASSIGN(X11ErrorTracker);
-};
-
-} // namespace base
-
-#endif // BASE_X11_X11_ERROR_TRACKER_H_