summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-29 01:13:23 +0000
committerevan@chromium.org <evan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-12-29 01:13:23 +0000
commit031e4d30e56ca9fc438e7e32bf6e51bdee74e8d0 (patch)
treefd9e8d470de5f79c0e531fecc1338ca6197974a7 /base
parente76049f366a8ffd17708d8915d7d3881b35d53a4 (diff)
downloadchromium_src-031e4d30e56ca9fc438e7e32bf6e51bdee74e8d0.zip
chromium_src-031e4d30e56ca9fc438e7e32bf6e51bdee74e8d0.tar.gz
chromium_src-031e4d30e56ca9fc438e7e32bf6e51bdee74e8d0.tar.bz2
linux: reduce header interdependencies
By analyzing gcc -H output, I found some of our worst offenders for headers bringing in other headers. native_web_keyboard_event.h was responsible for just under 60,000 extra includes! This change will in theory make the build faster. Review URL: http://codereview.chromium.org/524004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@35326 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/scoped_handle.h2
-rw-r--r--base/scoped_handle_gtk.h50
2 files changed, 0 insertions, 52 deletions
diff --git a/base/scoped_handle.h b/base/scoped_handle.h
index 0b97ff0..e53b2dd 100644
--- a/base/scoped_handle.h
+++ b/base/scoped_handle.h
@@ -11,8 +11,6 @@
#if defined(OS_WIN)
#include "base/scoped_handle_win.h"
-#elif defined(OS_POSIX) && !defined(OS_MACOSX)
-#include "base/scoped_handle_gtk.h"
#endif
class ScopedStdioHandle {
diff --git a/base/scoped_handle_gtk.h b/base/scoped_handle_gtk.h
deleted file mode 100644
index 06dd64d..0000000
--- a/base/scoped_handle_gtk.h
+++ /dev/null
@@ -1,50 +0,0 @@
-// Copyright (c) 2009 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_SCOPED_HANDLE_GTK_H_
-#define BASE_SCOPED_HANDLE_GTK_H_
-
-#include <gdk/gdk.h>
-
-// Wraps a GdkRegion. This class provides the same methods as ScopedGDIObject in
-// scoped_handle_win.
-class ScopedRegion {
- public:
- ScopedRegion() : region_(NULL) {}
- explicit ScopedRegion(GdkRegion* region) : region_(region) {}
-
- ~ScopedRegion() {
- Close();
- }
-
- void Set(GdkRegion* region) {
- Close();
-
- region_ = region;
- }
-
- GdkRegion* Get() {
- return region_;
- }
-
- GdkRegion* release() {
- GdkRegion* region = region_;
- region_ = NULL;
- return region;
- }
-
- private:
- void Close() {
- if (region_) {
- gdk_region_destroy(region_);
- region_ = NULL;
- }
- }
-
- GdkRegion* region_;
-
- DISALLOW_COPY_AND_ASSIGN(ScopedRegion);
-};
-
-#endif // BASE_SCOPED_HANDLE_GTK_H_